[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')
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')
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
LayaAir3
赞同来自:
this.btn.event(Laya.Event.CLICK, "");