URL


【URLs】

ES 模块会作为 URL 被解析和缓存。这意味着特殊字符必须被 百分比编码,例如将 # 替换为 %23,将 ? 替换为 %3F

【ES modules are resolved and cached as URLs. This means that special characters must be percent-encoded, such as # with %23 and ? with %3F.】

file:node:data: URL 方案是受支持的。在 Node.js 中,像 'https://example.com/app.js' 这样的指定符默认不受支持,除非使用 自定义 HTTPS 加载器