用Laya开发微信小游戏

 建立工程函数 编写ui界面代码:继承自ui类,而后对ui对象编写ui逻辑,好比有个页面叫TestPageUI,那么些一个类继承TestPageUI:oop class TestUI extends ui.test.TestPageUIui 而后在构造函数中调用本身写的ui初始化函数this 给你按钮加事件:spa this.btn.on(Laya.Event.CLICK, this, this.
相关文章
相关标签/搜索