const now = new Date();
const year = now.getFullYear();
const month = now.getMonth();
const now_month = (month + 1).toString().padStart(2, ‘0’);
const now_month_days = new Date(year, month + 1, 0).getDate()
const start = year + ‘-’ + now_month + ‘-01’
const end = year + ‘-’ + now_month + ‘-’ + now_month_days
时间范围设置为当月的1号到最后一天
最新推荐文章于 2025-12-11 16:09:33 发布
1120

被折叠的 条评论
为什么被折叠?



