[]Laya.Handler为什么注册不成功?

this.scrollView.mouseHandler = Laya.Handler.create(this,this.onScrollMouse)
this.scrollView.mouseHandler = new Laya.Handler(this, this.onScrollMouse);我在scrollView中有个mouseHandler的Laya.Handler变量,想直接注册到这个变量上,但是两种方式都没有成功
已邀请:

Laya_XS

赞同来自: yangwm

如果你用Laya.Handler.create的话,你就在create的第四个参数设置一个false,或者
你用new Laya.Handler 也可以解决你的问题。

要回复问题请先

商务合作
商务合作