求大神帮忙,为什么没输出结果?
var mydate=new Date();
var weekday["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+1+"月"+mydate.getDate()+"日"+weekday[mydate.getDay()]);
var mydate=new Date();
var weekday["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+1+"月"+mydate.getDate()+"日"+weekday[mydate.getDay()]);
2017-12-10
举报