不知道哪里错了,出现不了时间,求大神指教
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>计时器</title>
<style>
</style>
<script language ="javascript" type="text/javascript">
window.onload=function(){
showTime();
}
function checkTime(i){
if(i<10){
i="0"+i;
}
return i;
}
function showTime(){
var mydate=new Date();
var year=mydate.getFullYear();
var month=mydate.getMonth()+1;
var date=mydate.getDate();
var d=mydate.getDay();
var h=mydate.getHours();
var m=mydate.getMinutes();
var s=mydate.getSeconds();
m=checkTime(m);
s=checkTime(s);//判断
var weekday=new Array(7)
weekday[0]="星期日";
weekday[1]="星期一";
weekday[2]="星期二";
weekday[3]="星期三";
weekday[4]="星期四";
weekday[5]="星期五";
weekday[6]="星期六";
docment.getElementById("show").innerHTML=""+year+'年'+month+'月'+date+'日'+weekday[day]+h+':'+m+':'+s;
t=setTimeout("showTime()",500);
}
</script>
</head>
<body>
<div class="content1">
<div id="show">显示时间的位置</div>
</div>
</body>
</html>