方式一: <meta http-equiv="refresh" content="5; url=http://www.baidu.com/" />
方式二:
<script type="text/javascript">
var wait = 3;
var time = document.getElementById("time");
function fun(){
wait--;
time.value = wait;
if(wait<=1){
location.href = "https://www.baidu.com/";
clearInterval(inter);
}
}
var inter = setInterval("fun()",1000);
</script>