Javascript hilios/jQuery.countdown销毁实例

Javascript hilios/jQuery.countdown销毁实例,javascript,instance,countdown,destroy,Javascript,Instance,Countdown,Destroy,我正在使用这个倒计时插件 因此,我想知道如何在重新初始化之前销毁所有倒计时实例。尝试使用以下语法: $el.countdown('remove'); 这是倒计时的开始方法 开始倒计时{ 让自我=这个; this.processedMatches.forEachm=>{ 设effithis=$`span_${m.raceId}`; 让type=effThis.attrdata-raceaType; 如果类型!==POST{ 让nextRace=effThis.attrdata-time; 让r

我正在使用这个倒计时插件


因此,我想知道如何在重新初始化之前销毁所有倒计时实例。

尝试使用以下语法:

$el.countdown('remove');

这是倒计时的开始方法

开始倒计时{ 让自我=这个; this.processedMatches.forEachm=>{ 设effithis=$`span_${m.raceId}`; 让type=effThis.attrdata-raceaType; 如果类型!==POST{ 让nextRace=effThis.attrdata-time; 让raceId=effThis.attrdata-race-id; 设nextYear=moment.tznextRace,GMT+0; 让inst=effThis.CountdownNext.toDate .在“更新.倒计时”中, 功能事件{ 让displayDate=event.strftime“%D:%H:%M:%S”; effThis.htmlevent.strftime self.getDisplayFormatdisplayDate,effThis;/'%H:%M:%S' } .在“完成.倒计时”中, 作用{ //effThis.html; log`countdown finished${raceId}`; 自滑式旋转木马; }; self.countdownInstance.pushinst; //self.countdownInstance.pushraceId; } }; this.countdown_start=true;
}但是它仍然会进入倒计时。完成事件我想销毁所有初始化的实例