📅  最后修改于: 2022-03-11 15:03:36.282000             🧑  作者: Mango
minDate: Moment;
maxDate: Moment;
ngOnInit() {
const currentYear = moment().year();
this.minDate = moment([currentYear - 1, 0, 1]);
this.maxDate = moment([currentYear + 1, 11, 31]);
}