为什么星期几总是显示不出来
var mydate=new Date();
document.write(mydate+"<br>");
var weekday = ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六"];
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+"月"+mydate.getDate()+"日");
document.write(" "+weekday[mydate.getDate()]);