pickerDisabled:{
//验证时间范围
disabledDate:time=>{
constdate=newDate();
constyear=date.getFullYear();
constisRunNian=
(year%4===0&&year%100!==0) ||year%400===0;
letdates=isRunNian?366:365;
dates=dates*24*3600*1000
dates= (newDate(newDate().toLocaleDateString()).getTime() -1) -dates;
return(
time.getTime() >
newDate(newDate().toLocaleDateString()).getTime() -1||time.getTime()
);
}
}
网友评论