[备注]:如何正确使用schedule

// _timer_f 为保存函数的变量
if (this._timer_f) {
    cc.log("取消定时器");
    this.unschedule(this._timer_f);
}
this._timer_f = (function() {
    this.unschedule(this._timer_f);
    this._timer_f = null;
 }).bind(this);
cc.log("设置定时器");
this.schedule(this._timer_f, time_n_);
  • 如果漏了其中一步你的定时器就可能出现意外的错误,或者取消不了,遇到这个坑备注一下