<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title> new document </title>
</head>
<body>
恭喜您注册成功<span id="socond" style="color:red;">5</span>秒后跳转到首页如果不跳转请<a href="www.imoooc.com;">点击这里</a>
</body>
<script type="text/javascript">
var time=5;
var timer;
timer=setInterval(function(){
var second=document.getElementById("socond");
if(time<=1){
innerHTML=time;
time--
}else{
clearInterval(timer);
location.href="www.imoooc.com";
}
},1000);
</script>
</html>
各位就是这个在网页上显示乱码,怎么解决?
而后跳转怎么说页面加载错误?
慕瓜9220888
相关分类