摘要:
1 function getDaysInMonth(month, year) {2 var daysInMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; //主要处理二月份的天数 3 if ((month == 1) && (year % 4 == 0) && ((year % 100 != 0) || (year % 400 == 0))) {4 return 29;5 } else {6 return daysI... 阅读全文