获取以当天开头的一周的时间
//获取以当天开头的一周的时间getWeekDate() {var date = new Date(‘2020-12-30’);var year = date.getFullYear();var month = date.getMonth();var week = date.getDay();var month = month + 1;var day = date.getDate();//获取本月最后一天var LastDayOfLastMonth = new Date(year, mon
原创
2021-02-04 11:17:10 ·
138 阅读 ·
0 评论