URL.port
Note:
此特性在 Web Worker 中可用。语法
string = object.port; object.port = string;
参数
A USVString
.
示例
var url = new URL('https://mydomain.com:80/svn/Repos/');
var result = url.port; // Returns:'80'
规范
规范 | 状态 | 备注 |
---|---|---|
URL URL.port |
Living Standard | Initial definition. |
浏览器兼容性
BCD tables only load in the browser
相关链接
- The
URL
interface it belongs to.