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

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

1. HttpRequest在网页上和APP上表现不一致 [ 100%]

HttpRequest在网页上和APP上表现不一致 let url = "http://10.1.1.123:9090/pgame/s ... 3B%3B Laya.timer.loop(30000, this, ()=>{     let hr = new Laya.HttpRequest();     hr.http.timeout = 3000;     hr.http.ontimeout = function(){console.log("http timeout test: timeout")};     hr.on...

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

2. [LayaNative2.0] Laya.HttpRequest 怎么设置 timeout [ 99%]

[LayaNative2.0] Laya.HttpRequest 怎么设置 timeout 已经设置 request.http.timeout 无效。请求支援 2020-04-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复被折叠 要...

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

3. native下HttpRequest设置超时无效 [ 95%]

native下HttpRequest设置超时无效 android原生,HttpRequest请求时设置超时: var httpRequest = new HttpRequest(); httpRequest.http.timeout = 3000; 在做http请求时,如果丢包了,那么这个请求要很久(超过1分钟)才会返回失败。   请教下有碰到过这个问...

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

4. Scoket中的timeout [ 89%]

... runtime process, timeout after 10000 ms 自动关闭 [LayaNative2.0] Laya.HttpRequest 怎么设置 timeout 问题状态 最新活动: 2017-06-08 16:31 浏览: 970 关注: 2 人 jason18380447822 • 2017-06-08 16:40 我知道这个意思,我意思是在超过我设置的时间后也没有收到连...

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

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

#HttpRequest详解 ​ 在项目中我们难免会有发送http请求的需求,在LayaAir引擎中HttpRequest就是我们发送请求的基本类。HttpRequest类其实包装的就是原生的`XMLHttpRequest `,为了开发者更深入的了解这个类,我们先从XMLHttpRequest 开始。 ##...

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

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

# HttpRequest详解 在项目中我们难免会有发送http请求的需求,在LayaAir引擎中HttpRequest就是我们发送请求的基本类。HttpRequest类其实包装的就是原生的`XMLHttpRequest`,为了开发者更深入的了解这个类,我们先从XMLHttpRequest 开始。 ## 原...

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

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

# HttpRequest详解 在项目中我们难免会有发送http请求的需求,在LayaAir引擎中HttpRequest就是我们发送请求的基本类。HttpRequest类其实包装的就是原生的`XMLHttpRequest`,为了开发者更深入的了解这个类,我们先从XMLHttpRequest 开始。 ## 原...

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

8. 排坑:Laya.HttpRequest()无效 [ 73%]

排坑:Laya.HttpRequest()无效 写了一个测试程序,简单获取网页源码并打印到控制台。然而,什么也获取不到 下面是代码 console.log("开始测试"); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE, this, co...

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

9. Laya.HttpRequest 没有调用回调方法? [ 73%]

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

10. HttpRequest感觉没有发成功 [ 72%]

HttpRequest感觉没有发成功 官网复制过来的代码,加了一些控制台输出,但是没有看到请求或者输出。是不是我哪里用得不对?代码如下 //初始化引擎 Laya.init(1136,640); var xhr = new Laya.HttpRequest(); xhr.http.timeout = 10000;//设置超时时间;...

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