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

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

151. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 73%]

...tp = new 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

152. xhr的on和once什么区别,官网例子 [ 73%]

...w HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: ...

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

153. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 73%]

...Scripts.Core { import laya.net.Socket; import laya.utils.Byte; import laya.events.Event; import Scripts.Core.MsgManger; import Scripts.Core.IHandler; import Scripts.Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; publ...

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

154. 如何与服务端建立连接 [ 73%]

...t + ":" + port; let socket:Laya.Socket = new Laya.Socket(); socket.on(Laya.Event.OPEN,this,()=>{ console.log("connect success!"); }) socket.connectByUrl(url);点此查看Socket官方示例 2018-05-15 1 0 分享 微博 QZONE 微信 rabbit 赞同来自: 只要前端的,还是要前端和后端代...

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

155. socket与node服务端连不上?按照官方案例 [ 73%]

...接 this.socket.connectByUrl("ws://45.78.**.**:3000"); this.socket.on(Laya.Event.OPEN, this, openHandler); this.socket.on(Laya.Event.MESSAGE, this, receiveHandler); this.socket.on(Laya.Event.CLOSE, this, closeHandler); this.socket.on(Laya.Event.ERROR, this, errorHandler); function openHandler(event)...

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

156. HttpRequest在网页上和APP上表现不一致 [ 73%]

... function(){console.log("http timeout test: timeout")};     hr.once(Laya.Event.COMPLETE, this, ()=>{console.log("http timeout test: success");});     hr.once(Laya.Event.ERROR, this, (e: any)=>{console.log("http timeout test: error " + e.toString());});     console.log("http timeout test:...

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

157. Uncaught TypeError: Cannot read property 'XXX' of undefined [ 73%]

...rawRect(0, 0, 515, 515, "#996633", "#333333");             spe.on(Event.MOUSE_DOWN, spe, onMouseDown);             Laya.stage.on(Event.MOUSE_UP, this, onMouseUp);             Laya.stage.on(Event.MOUSE_OUT, this, onMouseUp);   } private function onMouseDown(e:Event):void {...

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

158. LayaNative中偶尔会出现所有HTTP POST方式交互均无回应的问题 [ 73%]

...么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 S_eVent 相关问题 laya针对页游耗用内存大的问题是如何解决的? unity导出粒子文件问题 请问LayaAir中如何使图片以圆形的方式显示? LayaAir3D UnityPlugin 使用须知-版本更新-问题...

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

159. 关于HttpRequest报错问题 [ 72%]

...nt-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); ...

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

160. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 72%]

... = Laya.Handler; var WebGL = Laya.WebGL; var Loader = laya.net.Loader; var Event = Laya.Event; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.sta...

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