【问题标题】:Is there an official name for the'http://localhost/index.html' part of the url 'http://localhost/index.html?v1=v'网址“http://localhost/index.html?v1=v”的“http://localhost/index.html”部分是否有正式名称
【发布时间】:2013-10-07 13:24:18
【问题描述】:

为了良好的命名,我试图弄清楚如何调用 URL 的协议 + 主机 + 端口 + 路径部分。我目前正在使用 AngularJS,我需要将我的 SPA 的路径发送到服务器,以便它可以生成一封电子邮件,允许用户验证他们的电子邮件地址。

我想让这个动态。我在 $location 上找不到可以提供此功能的方法。我只是想知道 URL 的协议 + 主机 + 端口 + 路径部分是否有正式名称。换句话说,给定以下 URL:

http://localhost/index.html
http://localhost/index.html?v1=v
http://localhost/index.html#/login

是否为 URL 的部分指定了一个名称,该名称等于:

http://localhost/index.html

我最初认为这将被称为 URI,但我似乎无法找到任何明确的答案。 Internet 上许多对 URI 的引用以及 .NET 中的 Uri 类都将查询字符串作为 URI 的一部分。

【问题讨论】:

    标签: .net url angularjs uri query-string


    【解决方案1】:

    【讨论】:

    • 我想你可能会有所收获。当您搜索“baseUri”时,您通常会获得对 XML 文档的引用。我希望得到更多与 RESTful 服务相关的确认,但到目前为止,这是我见过的最好的答案。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-03-11
    • 1970-01-01
    • 2013-07-31
    • 1970-01-01
    • 1970-01-01
    • 2021-10-03
    • 1970-01-01
    相关资源
    最近更新 更多