我們
2015-10-11 14:06
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); 网页什么都没有,我哪里错了?
new Array 用小括号()
JavaScript进阶篇
468061 学习 · 21891 问题
相似问题