这个URL部分的名称是什么? [英] What is the name of this URL part?

查看:151
本文介绍了这个URL部分的名称是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有网址:

http://mysite.com/part1/page.aspx

该网址中 part1 部分的名称是什么?

What is the name of the part1 part in that URL?

推荐答案

贾斯汀是正确的 - 这是路径的一部分。添加对 URI RFC 的引用,以获取其中包含的漂亮图片,其中说明了(在第3部分)示例URI的每个部分:

Justin is correct - it's one part of the path. Adding a reference to the URI RFC, for the pretty picture contained therein, which illustrates (in section 3) each part of an example URI:

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

此外,在专门讨论路径的部分


路径由一系列路径段组成,用斜杠
(/)字符分隔。始终为URI定义路径,但
定义的路径可能为空(零长度)。仅当URI将用作相对引用的
上下文时,才需要使用斜杠字符
来指示层次结构。例如,URI
的路径为fred@example.com,而
的URI为空路径。 (强调我的)

A path consists of a sequence of path segments separated by a slash ("/") character. A path is always defined for a URI, though the defined path may be empty (zero length). Use of the slash character to indicate hierarchy is only required when a URI will be used as the context for relative references. For example, the URI has a path of "fred@example.com", whereas the URI has an empty path. (emphasis mine)

所以路径段可能是你要找的术语。

And so "path segment" might be the term you're looking for.

这篇关于这个URL部分的名称是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆