获取及设置URL 的主机名部分。 url.host 和 url.hostname 之间的区别是 url.hostname 不包含端口。 const myURL = new URL('https://example.org:81/foo'); ...
確定! 回上一頁