var mydate=new Date()
<script type="text/javascript">
var mydate=new Date();
var weekday=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"];
document.write("今天是:" + mydate.getDay());
</script>
请问一下,var weekday=["星期一","星期二","星期三","星期四","星期五","星期六","星期日"];这个有什么作用?因为我试过把他删除了对结果是没有影响的,这里为什么要写他呀?