urlObject.hostname


hostname 属性是 host 组成部分排除 port 之后的小写的主机名部分。

例如:'sub.host.com'

The hostname property is the lower-cased host name portion of the host component without the port included.

For example: 'sub.example.com'.