function time(){ var week= new Array("星期天","星期一","星期二","星期三","星期四","星期五","星期六"); var clock= new Date(); document.getElementById("time").innerHTML=clock.getFullYear()+'年'+(clock.getMonth()+1)+'月'+clock.getDate()+'日'+week[clock.getDay()];}
添加回答
举报
0/150
提交
取消