js算出对称的年月日
for (let year = 2000; year <= 2060; year++) { const str = String(year) .split('') .reverse() .join('') const month = str.substring(0, 2) const day = str.substring(2, 4) const time = year + '/' + month + '/' + day if (!isNaN(new Date(time))) { console.log(time) } }
result: