我这个你里有点问题呢,为何无法输出,屏幕不显示
<!DOCTYPE HTML>
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>系好安全带,准备启航</title>
<script type="text/javascript">
//通过javascript的日期对象来得到当前的日期,并输出。
var mydate=new Date();
var year=mydate.getFullYear();
var month=myate.getMonth();
var day=mydate.getDay();
var day1=mydate.getDay();
switch(day1)
{
case 0:
week='星期一'; break;
case 1:
week='星期二' ;break;
case 2 :
week='星期三' ;break;
case 3:
week='星期四' ;break;
case 4:
week='星期五' ;break;
case 5:
week='星期六' ;break;
case 6 :
week='星期日' ;break;
}
document.write(year+"年"+month+"月"day+"日"+week);
</script>
</head>
<body>
</body>
</html>