console.log(window.location.host) console.log(document.domain) console.log(window.location.href) console.log(window.domain)
地址栏:
输出: