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

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

21. 使用二进制图片 · LayaAir3.0文档 · LAYABOX [ 82%]

...载试试。这里我们先用js脚本进行操作。代码如下: var xhr = new XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var im...

来源: Laya3.0_文档 发布时间: 20230303

22. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 81%]

... //初始化引擎 Laya.init(1136, 640); var sp:Sprite = new Sprite(); var xhr:HttpRequest = new HttpRequest(); xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):...

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

23. httpRequest send返回Request failed Status:0 [ 81%]

...36, 640); for (var i = 0; i < 4; i++) { var sp = new Laya.Sprite(); var xhr = new Laya.HttpRequest(); var url = "http://thirdqq.qlogo.cn/g%3Fb% ... 3B%3B xhr.once(Laya.Event.COMPLETE, this, this.completeHandler, [url, 1]); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send(url, "", "ge...

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

24. 打包成Android应用,获取首页链接经常超时最后卡在加载界面 [ 80%]

...时最后卡在加载界面 09-23 11:41:15.458 16178-16304/? I/LayaBox:  xhr.GET url=http://192.168.0.130/release/index_app.html?app=1 09-23 11:41:15.469 16178-16271/? I/LayaBox: Download [  ]:http://192.168.0.130/release/index_app.html?app=1 09-23 11:41:23.476 16178-16271/? W/LayaBox: download er...

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

25. 在native下 Laya.Browser.window.Blob不存在 [ 80%]

... 4 个回复 daibao520 赞同来自: donloadImageTest: function (ss) { var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, completeHandler); xhr.once(Laya.Event.ERROR, this, errorHandler); xhr.send("http://192.168.10.108:35553/re ... ot%3B, "", "get", "arraybuffer"); function compl...

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

26. 提示“AtlasResourceManager:Dispose the inner Atlas。” [ 77%]

...p(150, this, showframe); })(); function showframe() { var self = this; var xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE,this,completeHandler); xhr.once(Laya.Event.ERROR,this,errorHandler); xhr.send("res/monkey2.png","","get","arraybuffer"); function completeHandler(data){ var url = Lay...

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

27. laya2.8.0IDE工具中打安卓包(LayaNative版本相同),无法加载游戏启动页 [ 76%]

...aBox:  onerror UnknownError      assetsid old:  new:null I/LayaBox:  xhr.GET *l=http://happiness.joyleafs.com/ncapi/client/app*/index.json I/LayaBox: Download [  ]:http://happiness.joyleafs.com/ncapi/client/app*/index.json W/LayaBox: download error: timeout, dt=8,opttimeout=1798 I/LayaBox: Do...

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

28. HttpRequest post 请求不能传对象? [ 74%]

HttpRequest post 请求不能传对象? 代码: xhr.send(requestUrl + "/game/courtyard/take-down", "a=1&b=2", "post", "json", [ "Content-Type", "application/json; charset=utf-8", "token", getQueryString("token") ]); 按照官方方案请求使用"a=1&b=2"显示还是字符串   正确...

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

29. dcc服务端应该配置怎么样的环境才能让手机客户端更新资源时能够正确的访问到 [ 73%]

...yaBox(8836):  onerror UnknownError 05-10 18:07:04.196: I/LayaBox(8836):  xhr.GET url=http://10.0.0.114:8900/bin/index.html 05-10 18:07:04.236: I/LayaBox(8836): Download [  ]:http://10.0.0.114:8900/bin/index.html 05-10 18:07:12.244: E/LayaBox(8836): download error: timeout, dt=8,opttimeout=1798 05...

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

30. 改变不了请求消息头,已近设置了 [ 73%]

...nData.Uuid),"openId":network.HttpHelper.compile(core.CommonData.Uuid)} var xhr: Laya.HttpRequest = new Laya.HttpRequest(); xhr.http.headers=headers 2018-02-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aa...

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