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

大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0078 秒)

71. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 38%]

...## 事件 ​ 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,而`upload`是一...

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

72. 解决跨域相关! [ 38%]

...上, 看代码-> this.hr=new HttpRequest(); this.hr.once(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); this.hr.once(Laya.Event.COMPLETE, this, this.onHttpRequestComplete); this.hr.once(Laya.Event.ERROR, this, this.onHttpRequestError); this.hr.send("http://www.baidu.com", null, 'post',...

来源: Laya_社区 发布时间: 20151028

73. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...: void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this.scene3d.addChild(sp3); }); }) Laya.loader.loadPackage("sub2", this.pr...

来源: Laya3.0_文档 发布时间: 20251010

74. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 33%]

....Event.COMPLETE, e);             }         }         private progressHandler(e: any): void {             console.log("netconnection progress:", e);             this.event(Laya.Event.PROGRESS, e);         }         private errorHandler(e: any): void {           ...

来源: Laya_社区 发布时间: 20161109

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

... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...

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

76. 微信小游戏分包实战(ActionScript-小游戏适配文档-微信小游戏) [ 32%]

... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...

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

77. laya.display.Scene_API3.0 [ 30%]

...500毫秒 Returns void Static load load(url: string, complete?: Handler, progress?: Handler): Promise<Scene> Defined in laya/display/Scene.ts:372 加载场景及场景使用到的资源 Parameters url: string 场景地址 Default value complete: Handler = null 加载完成回调,返回场景...

来源: Laya3.0_api 发布时间: 20231115

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

... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...

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

79. laya.ui.View_API3.0 [ 30%]

...500毫秒 Returns void Static load load(url: string, complete?: Handler, progress?: Handler): Promise<Scene> Inherited from Scene.load Defined in laya/display/Scene.ts:372 加载场景及场景使用到的资源 Parameters url: string 场景地址 Default value complete: Handler = null 加载...

来源: Laya3.0_api 发布时间: 20231115

80. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 27%]

...= <Area>{ w: -1, h: -1 };  /** 血条 */ private _blood_chart: Laya.ProgressBar; // toset: private _blood_area: Area = new AreaEntity( 100, 20 ); public _blood_value: number;  /** 魔鬼 */ private _demon_ani: Laya.Animation; // toset: private _demon_area: Area = new AreaEntity( 100, 100); ...

来源: Laya_社区 发布时间: 20180515