当我们访问一个URL,任意的URL可以是域名,IP等等
只需要在访问的web 服务器上的index.html中写入如下代码就可以实现任意的跳转,还可以指定端口:
<script language="javascript">
document.location.href = "http://example.com:6080/";
</script>
如果你的网站首页不是index.html是其它的
那么我们也可以在相对应的文件里添加代码实现域名的跳转
<script language="javascript">
document.location.href = "http://www.k3ex.com";
</script>
亲测有效哦