Typescript tweenjs.call()很快被调用

Typescript tweenjs.call()很快被调用,typescript,do.call,Typescript,Do.call,即将调用.call中的onComplete方法。应该只在最后才调用它 代码 我试图在调用之前添加一个.wait(),但它给出了一个异常 这一个也不行。在tween结束工作之前调用onComplete方法 createjs.Tween.get(this).to({filled: 1}, duration).wait(duration).call(onComplete()).addEventListener("change", () => { this.renderFill(color)});

即将调用.call中的onComplete方法。应该只在最后才调用它

代码

我试图在调用之前添加一个.wait(),但它给出了一个异常

这一个也不行。在tween结束工作之前调用onComplete方法

createjs.Tween.get(this).to({filled: 1}, duration).wait(duration).call(onComplete()).addEventListener("change", () => { this.renderFill(color)});

调用
需要一个它将调用的函数。。。所以不要叫它。i、 e.
onComplete
not
onComplete()


在第一个示例中未调用onComplete,但在第二个示例中,它可以正常工作。谢谢
createjs.Tween.get(this).to({filled: 1}, duration).wait(duration).call(onComplete()).addEventListener("change", () => { this.renderFill(color)});
createjs.Tween.get(this).to({filled: 1}, duration).addEventListener("change", () => { this.renderFill(color)}).call(onComplete);