大约有 82 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0078 秒)
...## 事件 基本的事件大致有如下几种: - `onloadstart` - `onprogress` - `onabort` - `ontimeout` - `onerror` - `onload` - `onloadend` 我们常用的基本就是进度事件,完成事件,错误事件等 每一个`XMLHttpRequest`里面都有一个`upload`属性,而`upload`是一...
来源: Laya2.0_文档 发布时间: 20210715
...上, 看代码-> 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
...: 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
....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
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
...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
... 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期需要下载的数据总长度', res.totalBytesExpectedToWrite) }) ``` 本...
来源: Laya2.0_文档 发布时间: 20210715
...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
...= <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