var mydate=new Date(); var myyear=mydate.getYear(); var mymonth=mydate.getMonth()+1;//注:月数从0~11为一月到十二月 var mydat=mydate.getDate(); var myhours=mydate.getHours(); var myminutes=mydate.getMinutes(); var myseconds=mydate.getSeconds() var myday=mydate.getDay()//注:0-6对应为星期日到星期六 var xingqi switch(myday) { case 0:xingqi="星期日";break; case 1:xingqi="星期一";break; case 2:xingqi="星期二";break; case 3:xingqi="星期三";break; case 4:xingqi="星期四";break; case 5:xingqi="星期五";break; case 6:xingqi="星期六";break; default:xingqi="系统错误!" } document.write("今天 ") document.write(""+mymonth+"月"+mydat+"日 "); document.write(xingqi)
 3785    1 2 3 4 5 6 7 8 9 10 下一页 尾页