js实现跳转的几种方式
时间:2020-08-28 22:53:27
收藏:0
阅读:61
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=‘‘;
原文:https://www.cnblogs.com/tangjianqiang/p/13578437.html
评论(0)