大约有 73 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0047 秒)
...ata); this._customParse=false; this.event("progress",1); this.event("complete",(this.data instanceof Array)? [this.data] :this.data); } 上面这里直接判断失败,走了false 具体见附件。 望解决 附件 : --> WX3D.rar laya3D工...
来源: Laya_社区 发布时间: 20180101
...,错误事件等 /** * 请求进度改变时调度。 * @eventType Event.PROGRESS * */ /*[Event(name = "progress", type = "laya.events.Event")]*/ /** * 请求结束后调度。 * @eventType Event.COMPLETE * */ /*[Event(name = "complete", type = "laya.events.Event")]*/ /** * 请求出错时调度...
来源: Laya3.0_文档 发布时间: 20250104
...) { console.log("starConnection"); conn=new HttpRequest(); conn.once(Event.PROGRESS, this, onHttpRequestProgress); conn.once(Event.COMPLETE, this, onHttpRequestComplete); conn.once(Event.ERROR, this, onHttpRequestError); var buffBody=new Byte(); buffBody.endian=Byte.BIG_ENDIAN; buffBody.writeInt32(9...
来源: Laya_社区 发布时间: 20160726
...dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress); hr.once(Event.COMPLETE, this, onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&password=...
来源: Laya_社区 发布时间: 20170215
... let hr = new Laya.HttpRequest(); hr.http.timeout = 5000; hr.on(Laya.Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Laya.Event.COMPLETE, this, (response)=>{ UIFactory.closeWaitBar(); this.onHttpRequestComplete(response); if(handleOk){ handleOk(response); } }); hr.once(Laya.Event.ERROR...
来源: Laya_社区 发布时间: 20190308
...的代码触发了相关bug。 shiyang • 2020-09-09 16:39 你把img换成progress shiyang • 2020-09-09 16:44 laya.ui.js:3741 Uncaught TypeError: Cannot set property 'skin' of null at ProgressBar._skinLoaded (laya.ui.js:3741) at EventHandler.runWith (laya.core.js:998) at ResInfo.event (laya.core....
来源: Laya_社区 发布时间: 20200909
...ew Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会返回一个data this.http.once(Laya.Event.ERROR,this,this.onError); //数据传输失...
来源: Laya_社区 发布时间: 20180315
...r.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("onLoaded"); } 我们刷新页面看看有什么效果 如下图所示 我们看到 图片加载了 而且也有我们打印...
来源: Laya_社区 发布时间: 20160722
...获取分包加载状态。示例代码如下: ```javascript loadTaskA.onProgressUpdate(res => { console.log('sub1Name 下载进度', res.progress) console.log('sub1Name 已经下载的数据长度', res.totalBytesWritten) console.log('sub1Name 预期需要下载的数据总长度', res.totalBytes...
来源: Laya2.0_文档 发布时间: 20210714
... const elapsed = Date.now() - startTime; const progress = Math.min(elapsed / duration, 1); channel.volume = initialVolume + (targetVolume - initialVolume) * progress; if (progress === 1) { ...
来源: Laya_社区 发布时间: 20250930