js跳转页面的几种方式

 

 

第一种:
window.location.href="http://www.baidu.com";

第二种:
window.history.back(-1);

第三种:
window.navigate('http://www.baidu.com');

第四种:
self.location = "http://www.baidu.com";

第五种:
top.location = "http://www.baidu.com";

 

posted @ 2017-12-08 16:51  LIULIULIU666  阅读(346)  评论(0编辑  收藏  举报