getNowDate() { const timeOne = new Date() const year = timeOne.getFullYear() let month = timeOne.getMonth() + 1 let day = timeOne.getDate() month = month < 10 ? '0' + month : month day = day < 10 ? '0' + day : day const NOW_MONTHS_AGO = `${year}年${month}月` return NOW_MONTHS_AGO },
vue获取当前年月日
最新推荐文章于 2024-05-09 17:02:34 发布