URL.port
语法
string = object.port; object.port = string;
参数
A USVString
.
示例
js
var url = new URL("https://mydomain.com:80/svn/Repos/");
var result = url.port; // Returns:'80'
规范
Specification |
---|
URL Standard # dom-url-port |
浏览器兼容性
BCD tables only load in the browser
参见
- The
URL
interface it belongs to.