[0]button 组件 event 方法出发事件时候报错,版本3 beta4

具体代码: 
this.btn_check.on(Laya.Event.CLICK, this, () => {
console.log("ok")
});
this.btn_check.event(Laya.Event.CLICK);
  
错误信息:[Game] Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')
已邀请:

LayaAir3

赞同来自:

event方法后面加个参数吧。
this.btn.event(Laya.Event.CLICK, "");

要回复问题请先

商务合作
商务合作