js如何获取一个月的天数
function days(year,month){
var dayCount;
now = new Date(year,month, 0);
dayCount = now.getDate();
return dayCount;
}
alert(days(2014,7))
javascript获取一个月的天数
js如何获取一个月的天数
function days(year,month){
var dayCount;
now = new Date(year,month, 0);
dayCount = now.getDate();
return dayCount;
}
alert(days(2014,7))
javascript获取一个月的天数
转载于:https://www.cnblogs.com/ns10086/p/5340377.html