问答详情
源自:7-23 编程练习

实在看不出来,求查错

什么都显示不出来。。。

提问者:Yvonne_D 2015-08-13 00:35

个回答

  • 柯德Amour
    2015-12-23 13:43:00

    document.write(currentDate.getFullYear()+"年"+(currentDate.getMonth()+1)+"月"+currentDate.getDate()+"日"+" "+"星期"+weekday.getDay[]);

    星期后面写的不对,按你上面的定义,应该改为weekday[currentDate.getDay()],同时,你之前定义的weekday数组应改为weekday=["日","一","二","三","四","五","六"];

  • 伊兮尘昔
    2015-08-13 10:02:59

      var score=scoreStr.Array();什么意思?