导航

JS中如何将页面重定向到另一个页面

Posted on 2020-11-19 08:09  sealong  阅读(1451)  评论(0)    收藏  举报

a、使用 location.href:window.location.href =“https://www.baidu.com/”
b、使用location.replace:window.location.replace(" https://www.baidu.com/;");