js 获取每月最后一天
let y = new Date().getFullYear()
let m = new Date().getMonth() + 1
let lastDay = new Date(y, m, 0).getDate()
console.log('lastDay: ', lastDay); // lastDay: 31
let date = y + '-' + m + '-' + lastDay
console.log('date: ', date); // date: 2022-5-31
世界上只有一种真正的英雄主义,那就是在认清生活的真相后依然热爱生活。
浙公网安备 33010602011771号