console.log(window.location.host);

#js获取当前域名

 

console.log(window.location.href);

#js获取当前url

 

console.log(document.referrer);

#js获取上(前)一页url

相关文章: