为什么浏览器里不能显示
该程序的原代码如下
<HTML> <HEAD> <title>编写javascript脚本</title>
<SCRIPT Language="JavaScript"> today=new Data(); thehour=today.getHours(); theminute=today.getMinutes(); thesecond=today.getSeconds(); document.write("<h2>"+"现在是北京时间"+thehour+"点"+theminuter+ "分"+thesecond+"秒"+"<h2>") document.write("<p>") if(thehour<6) document.write(凌晨好!); else if(thehour<9) document.write("早上好"); else if(thehour<12) document.write("上午好"); else if(thehour<14) document.write("中午好"); else if(thehour<17) document.write("下午好"); else if(thehour<19) document.write("傍晚好"); else if(thehour<22) document.write("晚上好"); else document.write("夜里好"); </SCRIPT> </HEAD> <BODY></BODY>
</HTML>
用IE打开后为什么什么也看不到