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

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

151. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 54%]

...r); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentRequest.url, this.currentRequest.data, "post", "text", ["Access-Control-Allow-Origin","*", "Access-Control-Allow-Headers","X-Requested-With", "Access-Control-Allow-Methods","GET,POST"]); 2020-0...

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

152. 静态protobuf [ 54%]

...d: "bbb" } }) let buffer = msgScheme.AMsg.encode(msg).finish() this.socket.send(buffer)   收消息时要先装到byte里再decode出来 private receiveHandler(msg): void {    this.byte.clear() this.byte.writeArrayBuffer(msg) this.byte.pos = 0 let aMsg = msgScheme.AMsg.decode(this.byte.readUint8A...

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

153. 解决跨域相关! [ 54%]

... 2,目前没加头,让服务器和web程序在同一机器里跑,在send后,仍然没有反应,用layaair调式有反应,这算跨域问题吗?这是SSL的问题吗? 3,我想做个测试,不用我们那个死服务器了,就连www.baidu.com,这个加头后,为啥还连不上...

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

154. session获取不到 [ 54%]

...享 微博 QZONE 微信 Laya_XS 赞同来自: 你可以在httprequest调用send方法时,通过设置headers参数来实现seesion的定义! 2017-03-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 vincent 相关问题 请问有没...

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

155. as怎么用protobytebuf传输数据到服务端 [ 54%]

...rray:WritingBuffer = new WritingBuffer(); msgInfo.writeTo(msgByteArray); onSendBytesToServer(msgByteArray); msgInfo(这是protobu的de) /** * 客户端往服务端发送数据 **/ private function onSendBytesToServer(bytes:ByteArray):void { /*[IF-FLASH]*/ bytes.position = 0; /*[IF-FLASH]*/ g_Socket....

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

156. protobuf TS中使用 [ 54%]

...c = 400; e_mst_g2c_select_gate_result = 401;//选择网关返回 e_mst_g2c_send_msglist = 402;//发送协议列表 e_mst_cgend_index = 500; } 2017-09-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Zzz18815519 相关问题 Layabox 2.0 ...

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

157. 如何在laya中直接使用proto中定义的enum? [ 54%]

...c = 400; e_mst_g2c_select_gate_result = 401;//选择网关返回 e_mst_g2c_send_msglist = 402;//发送协议列表 e_mst_cgend_index = 500; } 2017-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 cuixueying ...

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

158. 从网络上下载的BMP图片二进制数据后,如何赋值给 laya.ui.Image [ 53%]

...      req.on(laya.events.Event.ERROR, this, cb_onFail);         req.send(url);      }      // 下载jpg图片成功后,显示在舞台上,response为 bmp图片二进制     function cb_onSuccess(response)     {         /* 如何把bmp二进制数据转换为image  */     ...

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

159. 执行回调函数时报is not a function [ 53%]

...来资源 这个是怎么回事? 关于shader中opengl函数问题 网络send 不回调?什么情况? 资源加载后的 回调 layaair2.0)请问js的Laya.Event.FRAME怎么用,看api中有,但写了不执行。 问题状态 最新活动: 2017-06-23 11:57 浏览: 1683 关注: 2 人 wwxinq...

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

160. http无响应 [ 52%]

...onHttpRequestComplete); hr.once(Event.ERROR, this, onHttpRequestError); hr.send('http://111.73.45.19/index.php/Tgy/tgyPost', 'username=c11111&password=888888', 'post', 'text'); } function onHttpRequestError(e) { console.log(e); } function onHttpRequestProgress(e) { console.log(e) } function onHt...

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