// 获取当前时间的月初月末
let currentDay = new Date()
currentDay.setDate(1)
console.info('firstDay:', currentDay)
let endDay = new Date(currentDay)
endDay.setMonth(currentDay.getMonth() + 1)
endDay.setDate(0)
console.info('endDay..........:', endDay)
Js获取当前时间的月初月末
最新推荐文章于 2024-05-15 22:33:17 发布