getDay()获得的值0对应的是“星期天”吧?参考代码0怎么对应的”星期一“
var day = date.getDay(); //星期
var week = '';
switch(day){
case 0 :
week = '星期一';
break;
case 1 :
week = '星期二';
break;
case 2 :
week = '星期三';
break;
case 3 :
week = '星期四';
break;
case 4 :
week = '星期五';
break;
case 5 :
week = '星期六';
break;
case 6 :
week = '星期天';
break;
}