如何进行页面跳转
Posted on Wed, 25 Dec 2024 16:15:21 +0800 by LiangMingJian
新开标签页跳转 #
<a href="https://www.baidu.com" target="_blank">BAT</a>
window.open("https://www.baidu.com");
原页面跳转 #
<a href="https://www.baidu.com">BAT</a>
window.location.href="https://www.baidu.com";