网站怎么制作 怎么做一个网址,可以自动跳转到另一个网址?
怎么做一个网址,可以自动跳转到另一个网址?有几种方法可以做到这一点:1,使用后端跳转,如果是PHP:<?PHP标题(“位置:url地址 ")? >例如<;PHP头()位置:hellowor
怎么做一个网址,可以自动跳转到另一个网址?
有几种方法可以做到这一点:
1,使用后端跳转,如果是PHP:
<?PHP标题(“位置:url地址 ")? >
例如<;PHP头()位置:helloworld.php")? >
页面将立即跳转,因为页眉执行位置重定向
2,并且前端跳转可以使用javascript:
<script type=“text/javascript”>window.location.href=" helloworld.php“
</script>
执行<head>标记中的代码,并直接插入代码:
<meta HTTP equiv=“refresh”content=“3url=”helloworld.php“”>