• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 33 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0032 秒)

1. 微信小游戏分包实战(JavaScript-小游戏适配文档-微信小游戏) [ 100%]

...载与加载,在加载完成后,通过 wx.loadSubpackage 的 success 回调来通知加载完成。示例代码如下: ```javascript const loadTask = wx.loadSubpackage({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 },...

来源: Laya2.0_文档 发布时间: 20210715

2. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 98%]

...载与加载,在加载完成后,通过 wx.loadSubpackage 的 success 回调来通知加载完成。示例代码如下: ```javascript const loadTask = wx.loadSubpackage({ name: 'stage1', // name 可以填 name 或者 root success: function(res) { // 分包加载成功后通过 success 回调 },...

来源: Laya2.0_文档 发布时间: 20210715

3. ViewStack属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 94%]

..."; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.c...

来源: Laya2.0_文档 发布时间: 20210714

4. ViewStack属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 93%]

..."; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addC...

来源: Laya2.0_文档 发布时间: 20210715

5. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 93%]

...边距,以防变形 progressBar.sizeGrid = "5,5,5,5"; //数据改变时回调方法 progressBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); //时间间隔循环,每100毫秒改变一次数据 Laya.timer.loop(100, this, changeValue); } /***时...

来源: Laya2.0_文档 发布时间: 20210715

6. ViewStack属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 93%]

..."; Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("./res/atlas/ui.atlas", Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个UI实例 comp = new ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(c...

来源: Laya2.0_文档 发布时间: 20210715

7. List属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 89%]

...200; //设置为可以选择 list.selectEnable = true; //选择单元格时回调方法 list.selectHandler = new Handler(this, onSelect); //渲染单元格时的回调方法 list.renderHandler = new Handler(this, updateItem); //为列表赋值 list.array = data; //加载到舞台 Laya.stage.addChild...

来源: Laya2.0_文档 发布时间: 20210715

8. HScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 88%]

... //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 createPromptText(this.hScrollBar) } /***创建提示信息***/ function createPr...

来源: Laya2.0_文档 发布时间: 20210714

9. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 88%]

... //最高滚动位置数字 this.vScrollBar.max = 100; //滚动变化事件回调 this.vScrollBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(this.vScrollBar); //创建提示信息 createPromptText(this.vScrollBar) } /***创建提示信息***/ function createPr...

来源: Laya2.0_文档 发布时间: 20210715

10. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 87%]

... //最高滚动位置数字 this.hScrollBar.max = 100; //滚动变化事件回调 this.hScrollBar.changeHandler = new Handler(this, this.onChange); //加载到舞台 Laya.stage.addChild(this.hScrollBar); //创建提示信息 this.createPromptText(this.hScrollBar) } /***创建提示信息***/ private...

来源: Laya2.0_文档 发布时间: 20210715