为什么显示不了当前的时间?
today=new Date();var day;
var date;
if(today.getDay()==0) day="星期日“
if(today.getDay()==1) day="星期一“
if(today.getDay()==2) day="星期二“
if(today.getDay()==3) day="星期三“
if(today.getDay()==4) day="星期四“
if(today.getDay()==5) day="星期五“
if(today.getDay()==6) day="星期六“
date=(today.getYear()+1900)+"年“+(today.getMonth()+1)+"月"+today.getDate()+"日“;
document.write(date);
document.write(" ");
document.write(day);
写出上面语句时,为什么不能在页面显示出当前的时间?求帮助。。。。。