V2EX  ›  英汉词典
Enqueued related words: Absolute Url, Relative Url, Query String

Base URL

释义 Definition

Base URL 指“基础网址/基准地址”:在网页或 API 中用作相对路径解析与拼接的起点(例如把 ./images/a.png 变成完整的 https://example.com/images/a.png)。在 API 文档里也常指某个服务的固定前缀,如 https://api.example.com/v1/

发音 Pronunciation (IPA)

/beɪs ˌjuː ɑːr ˈɛl/

例句 Examples

Set the base URL to https://example.com/ before adding endpoints.
在添加各个端点之前,把基础网址设为 https://example.com/

If the app is deployed behind a proxy, the base URL must reflect the public domain so that relative links resolve correctly across different routes.
如果应用部署在代理之后,基础网址必须使用对外公开的域名,这样相对链接才能在不同路由下被正确解析。

词源 Etymology

base 来自拉丁语 basis(“底座、基础”),经由法语进入英语,含义是“作为起点或支撑的部分”。URLUniform Resource Locator(统一资源定位符)的首字母缩写,源于互联网标准化术语。合在一起,base URL 就是“用于定位与拼接资源地址的基础起点”。

相关词 Related Words

文学与著作 Literary / Notable Works

  • Tim Berners-Lee《Weaving the Web》(《编织万维网》)——讨论 Web 架构与链接/地址概念时会涉及 URL 及其用法背景。
  • IETF RFC 3986Uniform Resource Identifier (URI): Generic Syntax》——标准文档中系统阐述 URI/URL、相对引用及基准解析(与 base URL 概念密切相关)。
  • David Flanagan《JavaScript: The Definitive Guide》——在讲解 Web 编程、请求与资源定位时常出现 base URL/相对 URL 的表述。
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   937 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 26ms · UTC 19:53 · PVG 03:53 · LAX 11:53 · JFK 14:53
♥ Do have faith in what you're doing.