JavaScript变更网站域名的网址链接

<a href="#" onclick="window.location.replace('https://bjbus-static.jinzihao.me' + window.location.pathname)">历史数据</a>
<a href="#" onclick="window.location.replace('https://bjbus.jinzihao.me' + window.location.pathname)">实时数据</a>

 

posted @ 2020-08-28 12:32  784040932  阅读(452)  评论(0编辑  收藏  举报