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

大约有 50 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0027 秒)

11. Native 如何使用ttf? [ 88%]

...ox.ttf 参照扩展字体 https://ldc.layabox.com/doc/?nav=zh-ts-7-2-9 var xhr = new XMLHttpRequest(); xhr.responseType = 'arraybuffer'; xhr.open('GET', "res/font/Arial.ttf", true); xhr.onload = function () { Laya.Browser.window.conch.setFontFaceFromBuffer("Arial", xhr.response); setInterval(onDrawF...

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

12. 排坑:Laya.HttpRequest()无效 [ 88%]

...,什么也获取不到 下面是代码 console.log("开始测试"); 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(...

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

13. Laya.HttpRequest 没有调用回调方法? [ 88%]

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

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

...时最后卡在加载界面 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

15. 官方的示例贴上来,怎么没反映啊 [ 87%]

...var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); 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...

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

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

...请: 与内容相关的链接 提交 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

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

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

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

...估计在微信小游戏或其他平台不行的   求大神帮忙 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

19. ios读取文件 [ 83%]

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

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

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