[]LAYA js 1.7.12 Tween 使用时回调时 core报错
在线的演示代码中添加了回调函数,执行没有问题,在下载的js包集成中,使用完全一样的代码,提示
Uncaught TypeError: handler.run is not a function
at Tween.__proto.complete (laya.core.js:9423)
9423 :handler && handler.run();
你们自己试试吧。。为啥要。&&run()
Uncaught TypeError: handler.run is not a function
at Tween.__proto.complete (laya.core.js:9423)
9423 :handler && handler.run();
你们自己试试吧。。为啥要。&&run()
要回复问题请先登录
4 个回复
Vivapercuore
赞同来自:
Monica - 知识达人
赞同来自:
Vivapercuore
赞同来自:
this.body.loadAtlas(config[this.type].imgBang, Laya.Handler.create(this, this.onLoad));
this.body.width = config[this.type].width
this.body.height = config[this.type].height
onLoad(){
Tween.to(this.body, { x: (config[this.type].width / 2) + 10, y: (config[this.type].heightp / 2) + 45 }, 500,callback)
}
callback
赞同来自: