//获取当前月的天数
function getMonthDays(year,month) {
var thisDate = new Date(year,month,0);
return thisDate.getDate();
}
js通过当前年份及月份查询本月有多少天
最新推荐文章于 2024-04-15 17:44:27 发布
//获取当前月的天数
function getMonthDays(year,month) {
var thisDate = new Date(year,month,0);
return thisDate.getDate();
}