摘要: 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... 阅读全文
posted @ 2013-06-29 08:29 mushishi 阅读(171) 评论(0) 推荐(0) 编辑