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

在inex累加到了9之后调用了unschedule没效果直接报错
this._callback = this.callback.bind( this. str);
this.schedule( this._callback, 1);
this.unschedule( this._callback);
if (callback === timer._callback) {
因为 bind()方法创建一个新的函数,和 unschedule 传入的 this.callback 不相等,所以删除失败。
谢谢
下次注意。谢谢