gpt4 book ai didi

url - 你怎么称呼没有主机名的 URL 路径?

转载 作者:行者123 更新时间:2023-12-03 22:22:45 25 4
gpt4 key购买 nike

出于好奇和正确命名配置设置的需要:您如何称呼作为绝对路径引用但没有域的 URL?

  • http://www.domain.com/path/to/myfile是一个绝对的、完整的 URL。
  • ../to/myfile是相对路径。

  • 你会怎么称呼 /path/to/myfile ?

    有约定吗?我只是愚蠢地忽略了显而易见的事情吗? “绝对路径”可以在文件系统上下文中工作,但在 URL 上下文中,我担心与完整 URL 混淆。

    最佳答案

    RFC 3986 terms it as absolute-path reference :

    Arelative reference that begins with a single slash character istermed an absolute-path reference.


    但是您可以只说绝对路径或绝对 URL/URI 路径。

    关于url - 你怎么称呼没有主机名的 URL 路径?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3127223/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com