日期显示不出来
var date= new Date(); var x=new Array["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; var n=date.getYear(); var y=date.getMonth()+1; var r=date.getDay(); var m=date.getDate(); var time=n+"年"+y+"月"+m+"日"+"星期"+x[r]; document.write(time); 则怎么没显示 是哪里错了..... 求大神指教下