//获得当前月最大天数 function maxDay(year,month){ var maxDay = new Date(year,month,0).getDate(); return maxDay; }