functiongetDate(cur_m, day_m) { // cur_m,0-本周,1-下周,2-下下周... // day_m,1-周一,2-周二...7-周日 var date = newDate(); var day = date.getDay() || 7; date = newDate(date.getFullYear(), date.getMonth(), date.getDate() - day + day_m + 7 * cur_m); var y = date.getFullYear(); var m = date.getMonth() + 1; m = m < 10 ? '0' + m : m; var d = date.getDate(); d = d < 10 ? ('0' + d) : d; return y + '-' + m + '-' + d; }