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 @ 2020-08-28 16:51  叫我汤先森  阅读(1073)  评论(0)    收藏  举报