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=‘‘;
时间: 2024-12-10 23:35:38