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

posted on 2020-12-12 18:13  Wang梦怡  阅读(198)  评论(0编辑  收藏  举报