HTMl方式:通过meta实现。
一下代码,如果没有url 则为自己本身页面的刷新,content表示每5秒刷新一次。
<html>
<head>
<title></title>
</head>
<body>
<meta http-equiv="refresh" content="5;url=http://www.xiaodeworld.com">
</body>
</html>
PHP函数:header()实现。
header(“location:http://www.xiaodeworld.com”);
JS实现:location.href("http://www.xiaodeworld.com");