1、使用 location.href:window.location.href =“https://www.baidu.com/”
2、使用location.replace:window.location.replace(" https://www.baidu.com/;");
路径可以改成自己要跳转的页面。
1、使用 location.href:window.location.href =“https://www.baidu.com/”
2、使用location.replace:window.location.replace(" https://www.baidu.com/;");
路径可以改成自己要跳转的页面。