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

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

11. Laya.HttpRequest 没有调用回调方法? [ 91%]

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

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

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

13. HttpRequest详解(JavaScript-LayaAir基础篇(JS)-数据与通信) [ 91%]

...tials`)如”`cookies`“和”`HTTP authentication schemes`“。除非`xhr.withCredentials`为`true`(`xhr`对象有一个属性叫`withCredentials`,默认值为`false`)。所以开发者假如遇到跨域发送不能携带cookie时候请参考这个。 ### 方法 #### abort() 如果请求...

来源: Laya2.0_文档 发布时间: 20210714

14. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 91%]

...tials`)如”`cookies`“和”`HTTP authentication schemes`“。除非`xhr.withCredentials`为`true`(`xhr`对象有一个属性叫`withCredentials`,默认值为`false`)。所以开发者假如遇到跨域发送不能携带cookie时候请参考这个。 ### 方法 #### abort() 如果请求...

来源: Laya2.0_文档 发布时间: 20210715

15. HttpRequest详解(ActionScript-LayaAir基础篇(AS3)-数据与通信) [ 91%]

...`credentials`)如"`cookies`"和"`HTTP authentication schemes`"。除非`xhr.withCredentials`为`true`(`xhr`对象有一个属性叫`withCredentials`,默认值为`false`)。所以开发者假如遇到跨域发送不能携带cookie时候请参考这个。 ###方法 ####abort() 如果请求已...

来源: Laya2.0_文档 发布时间: 20210715

16. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 89%]

...、图像数据等。 二、使用引擎的请求方法 XMLHttpRequest(XHR)是一个 JavaScript 对象,它提供了一种在浏览器中以异步方式发送 HTTP(或 HTTPS)请求并处理服务器响应的机制。例如,获取远程资源、提交表单数据、发送JSON数据等。 ...

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

17. ios读取文件 [ 88%]

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

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

...估计在微信小游戏或其他平台不行的   求大神帮忙 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. web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined [ 84%]

...请: 与内容相关的链接 提交 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. 打包缓存问题 [ 82%]

...表Achieve.json后,重新layadcc 后 第一次打开项目后日志显示xhr.get url=http://192.168.200.3:8889/configs/Achieve471a2538.json 第二次打开项目后日志还是显示xhr.get url=http://192.168.200.3:8889/configs/Achieve471a2538.json   按官网的流程图应该是发现有重新...

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