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

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

51. HTTP以POST发送Byte字节流,服务器无法解析 [ 71%]

...fBody.writeInt32(9); buffBody.writeInt32(100); buffBody.writeByte(1); conn.send("http://10.0.1.139:9000", buffBody.buffer, "post", "arraybuffer",null); } Byte的length长度输出为9 对面的JAVA服务器解析出来为16 我就算改成只writeByte一次,服务器解析出来大小也是8 我...

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

52. socket.sent [ 71%]

...ket.connect(“192.168.0.1.133”,8899); console.log("kjk"); this.socket.send("hello world");//这是发送字符串的形式。 //报错TypeError: Cannot read property 'send' of undefined //    at Btn1.Btn1On (file:///K:/laya/mylaya11/bin/js/Btn1.js:21:20) //    at EventHandler.__proto.runWit...

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

53. 最新版本IDE,如何获取http返回的json数据 [ 71%]

...OR,this,errorHandler); xhr.once(Event.PROGRESS,this,processHandler);  var sendData = {account:"aaa",password:"bbb"} xhr.send("http://xxx/login", JSON.stringify(sendData), "post", "json", ["content-type","application/json"]);     function processHandler(data){ console.log (data) } function comple...

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

54. 载入U3D导出的粒子特效报错 [ 70%]

...@ laya.core.js:12540 http.onload @ laya.core.js:12499 load (async) __proto.send @ laya.core.js:12498 __proto.load @ laya.core.js:12692 Laya3D._loadMesh @ laya.d3.js:18661 __proto.load @ laya.core.js:12662 __proto._doLoad @ laya.core.js:13328 __proto._next @ laya.core.js:13301 __proto._createLoad @ l...

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

55. request failed status:0 [ 70%]

request failed status:0 HttpRequest.send问题 浏览器可以COMPLETE,手机上ERROR:request failed status:0 2018-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: 1、If the st...

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

56. 我用laya.websocket通信 二进制数据, 服务器对二进制数据进行解析,解析出来不是预期,请问我哪里写错了? 代码如下 [ 70%]

...}             console.log("copy end");             this.socket.send(b);             console.log("send end");             this.socket.flush(); 2017-06-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提...

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

57. laya.net.Socket_API3.0 [ 69%]

...nnect connectByUrl event flush hasListener off offAll offAllCaller on once send Constructors constructor new Socket(host?: string | null, port?: number, byteClass?: {}, protocols?: any[] | null, isSecure?: boolean): Socket Defined in laya/net/Socket.ts:106 创建新的 Socket 对象。默认字节...

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

58. XMLHttpRequest cannot load [ 68%]

..., data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to load: F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json firstGame.max.js:9742 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/...

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

59. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 66%]

... window.URL.createObjectURL(blob); document.body.appendChild(img); } } xhr.send(); ``` 上面这个方法是用了浏览器自身提供的方法来把二进制转换成图片,二进制转换成图片其实还有很多种方法,比如加载进来二进制,解码成base64,然后再赋值给你...

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

60. native 1.0.2 连不上wss [ 66%]

...twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg: " + e.data); }; ws.onerror = function(e) { alert("error: " + e); console.log(e) }; </script> </body> </html> ...

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