JS跳转页面的几种方法

JS的几种跳转方式:
1. window.open(”url“)

2.用自定义函数 <script> function openWin(tag,obj) { obj.target="_blank"; obj.href = "Web/Substation/Substation.aspx?stationno="+tag; obj.click(); } </script> <a href="javascript:void(0)"onclick="openWin(3,this)">点我</a>
3. window.location.href='';

 

posted @ 2017-07-10 22:44  Mr_伍先生  阅读(822)  评论(0编辑  收藏  举报