【moment.js】获取对应时间的周一日期和周日日期
1:计算当天的周一日期var weekOfday = moment().format('E');//计算今天是这周第几天var last_monday = moment().subtract(weekOfday-1, 'days').format('YYYY/MM/DD');//周一日期var last_sunday = moment().add(7-weekOfday, ...
原创
2018-11-01 17:31:03 ·
23341 阅读 ·
10 评论