antd DatePicker 時間控件 限制選擇當天之前時間,今天之前時間

根據官方提供的disabledDate屬性來設置可選區間,new Date 可以替換成固定時間節點如:newDate(1992-01-01) disabledDate = (current) => { console.log(new Date()) return current < moment(new Date()) || current > moment().endOf('day') } <D
相關文章
相關標籤/搜索