pickerOptions: { selectableRange:(()=>{ let data=new Date(); let hour=data.getHours(); let minute=data.getMinutes(); let second=data.getSeconds(); return [`${hour}:${minute}:${second} - 23:59:59`] })(), disabledDate(time) { var date=new Date(); date.setFullYear(date.getFullYear()+2); date.setDate(date.getDate()-1); return (time.getTime() < Date.now() - 8.64e7)||(time.getTime()>date.getTime()); } }
本文作者为gengboxb,转载请注明。