js跳转到新的页面打开

self.location.href=”http://www.baidu.com”; //本页面打开
window.location.href=”http://www.baidu.com”; //本页面打开
window.open(“http://www.baidu.com“);//在新的窗口打开页面

猜你喜欢

转载自blog.csdn.net/qq_29676179/article/details/52605126