在 cc.systemEvent.on之后,this.node获取到的是null,是怎么回事啊?
用箭头操作符
楼上是来搞笑的嘛,你的this指向不对吧,检查下吧
啥意思,我的意思是 cc.systemEvent.on(()=>{})
this.layout.on(cc.Node.EventType.TOUCH_END, function (event) {
this //可以使用this 啦
},this ); //绑定this
哦哦 不是这个绑定问题。。。
哈哈哈哈新人吧,加油啊,欢迎入坑喔