各位大神看看我的代码哪里错了?为什么没有显示任何东西?
抓狂了,到底哪里有问题??
抓狂了,到底哪里有问题??
2016-12-18
<!DOCTYPE html>
<html>
<head>
<title>检查别人的代码</title>
<meta charset="utf-8">
<script type="text/javascript">
var mydate=new Date();
var myday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
var mynum=mydate.getDay();
var myyear=mydate.getFullYear();
var mymonth=mydate.getMonth();
var myddate=mydate.getDate();
document.write(myyear+"年"+(mymonth+1)+"月"+myddate+"日"+myday[mynum]);
</script>
</head>
<body>
</body>
</html>
举报