名称转换为网址参数的用语是什么? [英] What is the term for a name converted to a URL parameter?
问题描述
首先,对不起,如果我在错误的网站要求。请告诉我,我会把这个问题移到适当的一个。
我想学习它叫什么 - 如果有任何名称 - 当你转换假设在我的数据库中,我列出了一些URL参数的名称,例如, urldecode()
in php
<电视剧,一行是
大爆炸理论
我通常这样做 title name
------ -----
大爆炸理论the-big-bang-theory
所以第二列有一个名字叫name?
非常感谢您的帮助!
<方案
http://example.com/articles/the-big-bang-theory?revision=1
-
路径:
/ articles / the-big-bang-theory
-
路径段/子组件:
文章
-big-bang-theory
-
Slug (不是技术上定义的术语):
the-big-bang-theory
p>
http:// example .com / articles / 427ds17v223?revision = 1
-
a href =http://tools.ietf.org/html/rfc3986#section-3.3 =nofollow>路径:
/ articles / 427ds17v223
-
路径段/子组件:
articles
427ds17v223
-
Slug (不是技术上定义的字词):
none 或427ds17v223
术语 slug 有各种定义。有些人可能总是调用最后一个路径段 ;有些人只有在最后一个路径段是人类可读/可理解的时才可以使用此术语。
First of all, sorry if I'm asking in the wrong site. Please tell me and I'll move this question to the appropriate one.
I want to learn what is it called -if there is any name for it- when you convert a name to a URL parameter, like, urldecode()
in php
Suppose in my database, I list some TV series, and one row is for The Big Bang Theory
I usually do it like
title name
------ -----
The Big Bang Theory the-big-bang-theory
so is there a specific name for the second column, named "name" ?
I remember something like "slug" or "stub" from one of the CMS'
Thanks for any help !
http://example.com/articles/the-big-bang-theory?revision=1
Path:
/articles/the-big-bang-theory
Path segments/subcomponents:
articles
the-big-bang-theory
Slug (not a technically defined term):
the-big-bang-theory
http://example.com/articles/427ds17v223?revision=1
Path:
/articles/427ds17v223
Path segments/subcomponents:
articles
427ds17v223
Slug (not a technically defined term):
none, or427ds17v223
There are various definitions for the term slug. Some may always call the last path segment a slug, some may use this term only if the last path segment is human-readable/understandable.
这篇关于名称转换为网址参数的用语是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!