URL:toString() 方法
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2018年4月.
备注: 此特性在 Web Worker 中可用。
URL
接口的 toString()
方法返回一个包含整个 URL 的字符串。它实际上是 URL.href
的只读版本。