如何取消带参数的schedule

在inex累加到了9之后调用了unschedule没效果直接报错

this._callback = this.callback.bind( this. str);
this.schedule( this._callback, 1);
this.unschedule( this._callback);

  1. 学会贴代码,而不是图片。
  2. 我跟了一下,因为
    CCScheduler 中
    if (callback === timer._callback) {

因为 bind()方法创建一个新的函数,和 unschedule 传入的 this.callback 不相等,所以删除失败。

谢谢:pray:

下次注意。谢谢:pray: