//处理时间数据
gettime(dt) {
let curDate = new Date(dt);
let m = curDate.getMonth() + 1;
curDate.setMonth(m);
curDate.setDate(0);
return curDate.getDate()//当前月总天数
},
时间戳计算当前时间月份总天数
于 2022-01-21 11:14:34 首次发布