/*** 获取当前日期*/getNowDate() {const timeOne = new Date()const year = timeOne.getFullYear()let month = timeOne.getMonth() + 1let day = timeOne.getDate()month = month < 10 ? '0' + month : monthday = day < 10 ? '0' + day : dayconst NOW_MONTHS_AGO = `${year}-${month}-${day}`return NOW_MONTHS_AGO}
100字范文,内容丰富有趣,生活中的好帮手!