VUE字符串转日期加天数

let endDate =this.$moment(new Date('2022-01-01').getTime()+365 * 24 * 60 * 60 * 1000).format("YYYY-MM-DD");

 

posted @ 2022-01-11 14:40  哎丫丫呀喂  阅读(737)  评论(0编辑  收藏  举报