求求大神解答
var now=new Date(); var weekday=new Array["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; var year=now.getFullYear(); var month=now.getMonth()+1; var dates=now.getDate(); var day=now.getDay(); var time=year+"年"+month+"月"+dates+"日"+"星期"+weekday[day]; document.write(time); 网页什么都没有,我哪里错了?