js如何获取一个月的天数
function days(year,month){ var dayCount; now = new Date(year,month, 0); dayCount = now.getDate(); return dayCount; } alert(days(2014,7))
javascript获取一个月的天数
时间: 2024-11-09 05:07:22
js如何获取一个月的天数
function days(year,month){ var dayCount; now = new Date(year,month, 0); dayCount = now.getDate(); return dayCount; } alert(days(2014,7))
javascript获取一个月的天数