var mydate=new Date(); var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]; document.write(mydate.getFullYear()+"年"); document.write(mydate.getMonth()+"月"); document.write(mydate.getDate()+"日"); document.write(weekday[mydate.getDay()]); 各位大神问一下这里有错误吗
星期日和星期一之间的逗号不是英文输入法的。。。