自定义 年-月-日 组件
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

最低0.47元/天 解锁文章
1346

被折叠的 条评论
为什么被折叠?



