Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 ng2-datepicker 中只选择年份选项。我如何实现这一目标?
我找不到禁用模块中日期选择的选项
import { DatepickerOptions } from 'ng2-datepicker'; import * as frLocale from 'date-fns/locale/fr'; let options: DatepickerOptions = { minYear: 1970, maxYear: 2030, displayFormat: 'YYYY' }
在 Datepicker 函数调用中添加选项