1、计算当前周一到周日的日期
var weekOfday = moment().format('E');//计算今天是这周第几天
var last_monday = moment().subtract(weekOfday-1, 'days').format('YYYY/MM/DD');//周一日期
var last_sunday = moment().add(weekOfday-7, 'days').format('YYYY/MM/DD');//周日日期
1、计算当前周一到周日的日期
var weekOfday = moment().format('E');//计算今天是这周第几天
var last_monday = moment().subtract(weekOfday-1, 'days').format('YYYY/MM/DD');//周一日期
var last_sunday = moment().add(weekOfday-7, 'days').format('YYYY/MM/DD');//周日日期