js如何获取一个月的天数function days(year,month){ var dayCount; now = new Date(year,month, 0); dayCount = now.getDate(); return dayCount; } alert(days(2014,7)) javascript获取一个月的天数