URL 问号后面部分的术语是什么?

发布于 2024-09-28 12:09:24 字数 88 浏览 0 评论 0原文

http://www.example.com?foo

URL 的 foo 部分的术语是什么?

http://www.example.com?foo

What's the term for the foo part of the URL?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

維他命╮ 2024-10-05 12:09:25

它是查询,有时是查询字符串

要从 URI RFC 中提取有用的图表:

     foo://example.com:8042/over/there?name=ferret#nose
     \_/   \______________/\_________/ \_________/ \__/
      |           |            |            |        |
   scheme     authority       path        query   fragment

It's the query, or sometimes the query string.

To pinch a useful diagram from the URI RFC:

     foo://example.com:8042/over/there?name=ferret#nose
     \_/   \______________/\_________/ \_________/ \__/
      |           |            |            |        |
   scheme     authority       path        query   fragment
挥剑断情 2024-10-05 12:09:25

它被称为“查询字符串”,正如您在维基百科上看到的那样。

It's called the "query string", as you can see on Wikipedia.

此岸叶落 2024-10-05 12:09:25

取决于您使用的技术。
通常它被称为名称值对。查询字符串是指 ? 之后的整个字符串。符号。然后,根据所使用的技术,查询字符串被解析并通常显示为字典。
例如, http://www.example.com?foo=bar&foo1=bar1< /a>:
请求[“foo”]产生“bar”
请求[“foo1”]为asp生成“bar1”
或 $_GET["foo"] -> php 的“bar”等等。

Depends on the technology you use.
Usually its called name value pair. Query string refers to the whole string after ? sign. Then depending on technology used that query string is parsed and normally appears as the dictionary.
For example, http://www.example.com?foo=bar&foo1=bar1:
Request["foo"] yields "bar"
Request["foo1"] yields "bar1" for asp
or $_GET["foo"] -> "bar" for php and so on.

一场信仰旅途 2024-10-05 12:09:25

这里 foo 是查询字符串,它是 URL 的一部分,因此如果用户保存或将 URL 发送给另一个用户,它就会被包含在内。假设您想从 url 发送一些输入数据,那么我们使用这种类型的参数。有根据 RFC 2616,没有传递参数的限制。
查询字符串的语法
Request.QueryString(变量)[(索引).count]

Here foo is query string,it is a part of the URL, and are therefore included if the user saves or sends the URL to another user.suppose you want to send some input data from url then we use this types of parameater.There are no limit of passing parameters according to RFC 2616.
Syntax of Query String
Request.QueryString(variable)[(index).count]

只有影子陪我不离不弃 2024-10-05 12:09:25

'foo' 仅被称为 URL 查询的字符串参数

The 'foo' only is called String Parameters of the URL Query

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文