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

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

11. ios读取文件 [ 86%]

...-04 0 3 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: var xhr = new XMLHttpRequest(); xhr.open('GET','http://10.10.20.19:7766/version',true); xhr.onload=(e)=>{     var f = window.appcache.getCachePath()+'/version';     fs_writeFileSync(f,xhr.responseText);//把结果写到f...

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

12. 请问怎么把arraybuffer作为图片显示出来 [ 85%]

...估计在微信小游戏或其他平台不行的   求大神帮忙 let xhr = new Laya.HttpRequest(); xhr.once(Laya.Event.COMPLETE, this, this.completeHandler); xhr.once(Laya.Event.ERROR, this, this.errorHandler); xhr.send("https://ask.layabox.com/static ... ot%3B, "", "get", "arraybuffer"); privat...

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

13. httpRequest send返回Request failed Status:0 [ 84%]

...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

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

...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

15. Laya.HttpRequest 没有调用回调方法? [ 81%]

...est 没有调用回调方法? //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("http...

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

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

...载试试。这里我们先用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

17. iOS真机运行报错--- 加载游戏失败,可能由于您的网络不稳定,请退出重进 [ 81%]

... xcode Log: 2018-03-15 11:24:58.264754+0800 MineSweeper6[7091:2932031] xhr.GET url=http://stand.alone.version/index.html 2018-03-15 11:24:58.265521+0800 MineSweeper6[7091:2932001] Download [ ]:http://stand.alone.version/index.html Creating context 1024, 768, 22018-03-15 11:24:58.270942+0800 MineSw...

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

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

... //初始化引擎 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

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

...请: 与内容相关的链接 提交 2 个回复 金风 赞同来自: this.xhr.once(Laya.Event.COMPLETE, this, this.CompleteHandler); this.xhr.once(Laya.Event.ERROR, this, this.ErrorHandler); this.xhr.on(Laya.Event.PROGRESS, this, this.ProgressHandler); this.xhr.send(Global.WebHost+this.currentReque...

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

20. reflection error: can not find method signature 反射错误 [ 80%]

...x.js@ s=0 l=0 2020-05-16 23:46:23.946201+0800 Digital Warrior[557:53097]  xhr.GET url=https://10.10.31.23:8001/index.js 2020-05-16 23:46:23.947349+0800 Digital Warrior[557:53056] Download [  ]:https://10.10.31.23:8001/index.js 2020-05-16 23:46:23.948169+0800 Digital Warrior[557:53056] download err...

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