template限制当前时间之前的时间/*limitdays*/exportconstdisableConfig=(time)=>{returntime.getTime(){constarrs=[]for(leti=0;i<24;i++){//before,同下if(newDate().getHours()<=i)继续;arrs.push(i)}returnarrs;}/*限制分钟数*/exportconstdisabledMinutes=()=>{constarrs=[]for(leti=0;i<60;i++){if(newDate().getMinutes()<=i)继续;arrs.push(i)}returnarrs;}/*限制秒数*/exportconstdisabledSeconds=()=>{constarrs=[]for(leti=0;i<60;i++){if(newDate().getSeconds()<=i)继续;到达。push(i)}returnarrs;}限制后的时间exportconstsetDisableDate=(time)=>{return(time.getTime()newDate().getTime())}