monment在网页的console有警告的问题
插件moment 在网页的console有警告是因为,用的不是utc的时间。 在转化时间的时候,加上new Date()就可以了:
var year = this.moment(new Date()).format('YYYY'); //当年
var month = this.moment(new Date('2019/12/10')).format('M'); //当月月份
var day = this.moment(new Date()).format('D');//筛选出当天的日期