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