题解 | #返回星期数#
返回星期数
http://www.nowcoder.com/practice/e0977412539049928778363f59fbb3c3
function _getday(value) {
// 补全代码
var a;
switch(value){
case 1:
a = "星期一";
break;
case 2:
a = "星期二";
break;
case 3:
a = "星期三";
break;
case 4:
a = "星期四";
break;
case 5:
a = "星期五";
break;
case 6:
a = "星期六";
break;
case 7:
a = "星期天";
break;
}
return a;
}