[html]js打开指定页面

1.在当前窗口打开

location.href = "http://www.baidu.com";

2.可以设置开发方式

window.open("http://www.baidu.com" "_blank");

原文地址:https://www.cnblogs.com/luoxiaolei/p/4936340.html