urlObject.host


host 属性是 URL 的完整小写主机部分,包括指定的 port(端口)。

🌐 The host property is the full lower-cased host portion of the URL, including the port if specified.

例如:'sub.example.com:8080'

🌐 For example: 'sub.example.com:8080'.