协议
特性为
URL
接口是
USVString
representing the protocol scheme of the URL, including the final
':'
.
const protocol = url.protocol url.protocol = newProtocol
A
USVString
.
const url = new URL('../API/URL/protocol');
console.log(url.protocol); // Logs "https:"
| 规范 | 状态 | 注释 |
|---|---|---|
|
URL
The definition of 'protocol' in that specification. |
实时标准 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
协议
|
Chrome Yes | Edge 13 | Firefox 22 | IE No | Opera Yes | Safari 10 | WebView Android Yes | Chrome Android Yes | Firefox Android 22 | Opera Android Yes | Safari iOS Yes | Samsung Internet Android Yes |
完整支持
不支持
URL
interface it belongs to.