包含了域名的一个DOMString,可能在该串最后带有一个":"并跟上 URL 的端口号。
包含 URL 域名的一个DOMString。
// URL:https://fanfanxhf.cn
location.host; // fanfanxhf.cn
location.hostname; // fanfanxhf.cn
// URL:https://fanfanxhf.cn:443
location.host; // fanfanxhf.cn:443
location.hostname; // fanfanxhf.cn