为什么这样获取星期就行不通?请大神指点!
<script type="text/javascript">
var mydate=new Date();
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write("今天是:" +weekday[mydate.getDate()] );
</script>
</head>
<script type="text/javascript">
var mydate=new Date();
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write("今天是:" +weekday[mydate.getDate()] );
</script>
</head>
2018-07-20
举报