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

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

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. 排坑:Laya.HttpRequest()无效 [ 73%]

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

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

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

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

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

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

8. xhr的on和once什么区别,官网例子 [ 66%]

xhr的on和once什么区别,官网例子 Laya.init(1136, 640); var xhr:HttpRequest = new HttpRequest(); xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); 2017-10-17 ...

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

9. http在手机端上请求返回404 [ 64%]

...H5游戏,退到后台,等几秒返回音乐音效全无 TypeScript下HttpRequest发送Post请求有Bug? 1.7.15 小游戏3d 发布后在手机预览显示异常 我刚开始使用layabox,发布了一个h5,但是手机上应该怎么打开这个网页呢 打包android版本 点击返回键会...

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

10. 手机调试时http请求错误,返回Request failed Status:0 [ 61%]

...错误,返回Request failed Status:0 Laya版本为2.0,程序中用Laya.HttpRequest的send函数post请求一个地址,在layaair中启动浏览器,可以正常得到回复,但用layaair生成的二维码,通过手机扫描测试,send请求时,就会收到一个error事件,错误提...

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