[html]js打开指定页面

1.在当前窗口打开

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

2.可以设置开发方式

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

posted on 2015-11-04 16:14  Simle  阅读(844)  评论(0编辑  收藏  举报