var day = ["周日","周一","周二","周三","周四","周五","周六"];
var now = new Date();
var time = now.getDay();
var day2 = new Array(7);
for (var i = 0; i < 7; i++) {
console.log(time);
if(time == 7){
time = 0
}
day2[i] = day[time]
time++;
}
console.log(day2)
當(dāng)前日期是周六