function getMonthDays(date) {
var year = date.getFullYear();
var month = date.setMonth(date.getMonth() + 1);
date.setDate(0);
return date;
}
Date 获取本月的天数
最新推荐文章于 2023-10-03 21:30:04 发布
function getMonthDays(date) {
var year = date.getFullYear();
var month = date.setMonth(date.getMonth() + 1);
date.setDate(0);
return date;
}