自定义 年-月-日 组件
code
import {
useState } from 'react'
function Year_Month_Date() {
const [yearList, setYearList] = useState([])
const [monthList, setMonthList] = useState([])
const [dateList, setDateList] = useState([])
const [currentYear, setCurrentYear] = useState((new Date()).getFullYear())
const [currentMonth, setCurrentMonth] = useState((new Date()).getMonth() + 1)
const [currentDate, setCurrentDate] = useState((new Date()).getDate())
const computedTime = new