当前位置: 代码迷 >> JavaScript >> 请问一下错在什么地方了?还有学习javascrip有什么好方法
  详细解决方案

请问一下错在什么地方了?还有学习javascrip有什么好方法

热度:248   发布时间:2012-04-27 11:57:44.0
请教一下错在什么地方了?还有学习javascrip有什么好方法?
<script language="JaveScript1.2">
var isnMonth=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var isnDay=newArray("星期一","星期二","星期三","星期四","星期五","星期六","星期日");
today=new Date();
Year=today.getYear()
Date=today.getDate();
if(document.all)document.title="今天是:"+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay]


------解决方案--------------------
JScript code
<script>
var isnMonth=new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");
var isnDay=new Array("星期一","星期二","星期三","星期四","星期五","星期六","星期日");
today=new Date();
Year=today.getFullYear()
D=today.getDate();
document.title="今天是:"+Year+"年"+isnMonth[today.getMonth()]+D+"日"+isnDay[today.getDay()]
</script>