new DategetMonthtoString怎么改写代码生成年月日
const date = new Date(); const year = date.getFullYear().toString(); const month = (date.getMonth() + 1).toString().padStart(2, '0'); const day = date.getDate().toString().padStart(2, '0'); const fullDate = year + month + day;
原文地址: https://www.cveoy.top/t/topic/hLJe 著作权归作者所有。请勿转载和采集!