大约有 196 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0040 秒)
Laya_社区(162) Laya2.0_文档(15) Laya3.0_文档(7) Laya_示例(3) Laya2.0_示例(3) laya_api(2) Laya3.0_api(2) Laya2.0_api(2)
...uest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudioData.bind(this));}private function decodeAudioData(buffer:Object):void{audioBufferSourceNode = ...
来源: Laya_社区 发布时间: 20181023
...繁发送消息或者接收消息,导致卡顿。据说WebSocket 中的send( ) 方法是异步的:提供的数据会在客户端排队,而函数则立即返回。很有可能这个卡顿就是排队导致的。 注:(上面的问题在h5端不管用ws还是wss 或者native上不管ios还是...
来源: Laya_社区 发布时间: 20191105
...null, cb_onSuccess); req.on(laya.events.Event.ERROR, null, cb_onFail); req.send(url); } function cb_onSuccess(response) { alert("response=" + response); // 成功输出:{"ret":1478136071} } function cb_onFail(message) { alert(message); // 失败输出:Request failed Status:0 text: } 注:url...
来源: Laya_社区 发布时间: 20161103
... open() 之前)。 1:请求已经建立但还没有发出(调用 send() 之前)。 2:请求已经发出正在处理之中(这里通常可以从响应得到内容头部)。 3:请求已经处理,响应中通常有部分数据可用,但是服务器还没有完成响应。 4...
来源: Laya_社区 发布时间: 20180522
...,说是字节长度问题。 How long are the message you are trying to send If it's larger than 125 bytes you need to encode the length in a different manner i.e you must take the extended payload length into consideration. – Cyclonecode Jul 7 '15 at 10:22 Right, of course, so i need to use...
来源: Laya_社区 发布时间: 20180612
...his, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function completeHandler(data) { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片...
来源: Laya_社区 发布时间: 20180201
...trace("HttpRequest error"); }); req.send("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js"); 却请求失败,触发Event.ERROR Chrome中错误信息如下: XMLHttpRequest cannot load http://int.dpool.sina.com.cn/i ... 3Djs. No 'Access-Control-A...
来源: Laya_社区 发布时间: 20170120
...数据 greetingBuffer 通过 WebSocket 发送到服务器。 this.socket?.send(greetingBuffer); }; // 接收服务器返回的消息 this.socket.onmessage = (event) => { //将 event.data 转换为 Uint8Array 类型,以便传递给解码函数 handleServerResponse 进行处理。 const buffer = ...
来源: Laya3.0_文档 发布时间: 20250103
...E,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ var url = Laya.Browser.window.URL.createObjectURL(data);//创建一个url对象 self.sp_video.loadImage(url); } } })(); 主要代码就是这样...
来源: Laya_社区 发布时间: 20170825
...回 //post数据的写法 console.log(JSON.stringify(request)); this.http.send(url,JSON.stringify(request), 'post', 'text',["content-type","application/json"]); } function onProgress(e) { console.log("run onProgress"); } function onComplete(e) { console.log("run onComplete"); console.log(this.http.d...
来源: Laya_社区 发布时间: 20180315