使用时将代码全部复制,直接调用getEveryDay 方法
如: let arr = getEveryDay()
console.log(arr)
function getCountDays() {
var curDate = new Date();
var curMonth = curDate.getMonth();
curDate.setMonth(curMonth + 1);
console.log(curDate)
curDate.setDate(0);
console.log(curDate)
return curDate.getDate();
}
// 下个月的日期
function getCountDays1(){
var curDate = new Date();
var curMonth = curDate.getMonth();
curDate.setMonth(curMonth + 2);
curDate.setDate(0);
return curDate.getDate();
}
function