日期JS
获取上个月第一天和最后一天let nowDays = new Date();let year = nowDays.getFullYear();let month = nowDays.getMonth();if (month == 0) { month = 12; year = year - 1;}if (month < 10) { month = '0' + month;}let lastDate = new Date(year, month, 0);let star
原创
2021-01-15 16:15:56 ·
99 阅读 ·
0 评论