首页 /编程语言和算法/JavaScript
 js 跳转的代码
2023年5月23日 19:27
<script>
    window.location.replace('http://manongku.com');
</script>

<script>
    window.location = 'http://www.manongku.com';
</script>

<script>
   document.location.href = 'http://manongku.com';
</script>

<a href='javascript:history.go(-1)' rel='返回上一步'>返回上一步</a>

<a href='javascript:history.back()' rel='返回上一步'>返回上一步</a>

<script>
    top.location = 'http://manongku.com';
</script>

<script>
window.navigate('http://manongku.com');
</script>

<script>
self.location = 'http:/manongku.com';
</script>


 
全部回复(0)
首页 | 电脑版 |