a、使用 location.href:window.location.href =“https://www.baidu.com/”
b、使用location.replace:window.location.replace(" https://www.baidu.com/;");
JS中如何将页面重定向到另一个页面?
最新推荐文章于 2023-08-09 15:25:06 发布
a、使用 location.href:window.location.href =“https://www.baidu.com/”
b、使用location.replace:window.location.replace(" https://www.baidu.com/;");