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

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

1. HttpRequest.send重复请求complete事件就不回调了 [ 100%]

HttpRequest.send重复请求complete事件就不回调了 HttpRequest.send重复请求complete事件就不回调了 2017-05-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueying 赞同来自: 你监听事...

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

2. HttpRequest complete回调问题 [ 99%]

HttpRequest complete回调问题 回调中获取了Request回传的数据内容并显示在页面上:在IDE中能够正常打印出来,但是在浏览器中却无法显示。 2017-02-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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

3. Laya.HttpRequest 没有调用回调方法? [ 99%]

Laya.HttpRequest 没有调用回调方法? //初始化引擎 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); ...

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

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

HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //...

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

5. laya.net.HttpRequest_API3.0 [ 85%]

...lic/Protected All Inherited Externals Only exported Menu Globals "laya/net/HttpRequest" HttpRequest Class HttpRequest HttpRequest 通过封装 HTML XMLHttpRequest 对象提供了对 HTTP 协议的完全的访问,包括做出 POST 和 HEAD 请求以及普通的 GET 请求的能力。 HttpRequest ...

来源: Laya3.0_api 发布时间: 20231115

6. http 请求 once 的 回调参数,如何传递和接收? [ 85%]

...tDispatcher — 此 EventDispatcher 对象。 请求发送: var hr = new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr.send("http://localhost:8082/hu_get",{}, "post","json",null);   回调方法: success:function (e,args) {     console.log(e); //此行可以得到响...

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

7. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 84%]

...求方法2.1 发送HTTP请求2.2、获取HTTP响应2.3 使用原生的XMLHttpRequestHTTP通信 Author: Charley LayaAir3引擎提供了强大的HTTP通信模块,通过HttpRequest类来进行网络请求,支持包括GET、POST等常用HTTP方法。这一模块为游戏开发者提供了便捷的...

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

8. HttpRequest提示oauth_callback is not a valid HTTP header field name [ 82%]

HttpRequest提示oauth_callback is not a valid HTTP header field name arr.push(["oauth_callback","回调网址"]);把arr作为send的最后一个参数,总是提醒oauth_callback is not a valid HTTP header field name,是哪里写错了吗 2018-04-03 添加评论 免费帖 --> 分享 微博 QZON...

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

9. HttpRequest有一定几率触发error事件 Status:0 [ 80%]

HttpRequest有一定几率触发error事件 Status:0 在微信开发者工具中,调用 request.send(url + method, data, "post", "json", ["Content-Type","application/json","Authorization", "Bearer " + PlayerModel.Instance.token]);   大部分时候正常  但有20%的几率会触发error事件...

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

10. Laya.loader.load() 是怎么发送请求的? [ 80%]

...怎么发送请求的? 如题,请问Laya.loader.load() 通过啥调用 HttpRequest的send方法的啊? 2018-04-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya_XS 赞同来自: 这个你还需要自己...

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