纪念日调整

This commit is contained in:
limqhz
2022-12-12 17:30:08 +08:00
parent 20e901da0a
commit 44df516337
13 changed files with 221 additions and 23 deletions

View File

@@ -4,7 +4,7 @@ export default class CountDown{
if(t instanceof Array){
this.time =new Date().getTime()+ (new Date(t[1]).getTime() - new Date(t[0]).getTime());
}else{
this.time =/\//gi.test(t.toString()) ? (new Date(t).getTime()) : ( new Date().getTime()+parseInt(t));
this.time =/-/gi.test(t.toString()) ? (new Date(t).getTime()) : ( new Date().getTime()+parseInt(t));
}
}
timeOut (fn,t) {