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

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

1. TypeScript下HttpRequest发送Post请求有Bug? [ 100%]

LayaAir引擎 TypeScript下HttpRequest发送Post请求有Bug? 引擎:1.7.19 IDE: 1.7.19 使用TypeScript,输出H5   HttpRequest指定post模式,但通过浏览器看到却永远是get模式 测试代码已缩减至50行以内,确定无其它干扰   有人遇到过相同困扰吗?求帮...

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

2. [LayaNative3]native重Laya.HttpRequest通过post发送数据的时候内容被改变 [ 99%]

[LayaNative3]native重Laya.HttpRequest通过post发送数据的时候内容被改变 let r = new Laya.HttpRequest(); r.send(`${AppConfig.apiUrl}/account/login`, 'NDIlNUIlMjJjaGF0JTIyJTJDJTdCJTIyZnJvbSUyMiUzQTEwNDQx', "post", "text");   post数据 :NDIlNUIlMjJjaGF0JTIyJTJDJTdCJTIyZnJvbSUyMiUzQTEw...

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

3. 关于HttpRequest报错问题 [ 93%]

关于HttpRequest报错问题 var xmlHttp = new Laya.HttpRequest(); xmlHttp.open("POST", url, true); xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xml...

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

4. 打包成APK后,POST请求会先去Download请求的地址 [ 92%]

...求会先去Download请求的地址 项目打包成app后运行,使用XMLHttpRequest发出post请求后,log中出现了Download 我post的地址。然后有时候会卡住,大概5秒后会出现Download end:200的log,这之后才会真正把post请求发出去。有时候Download会直接超...

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

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

web和微信端没有问题,打包成apk后 httprequest报Request failed Status:404 text:undefined 现象是消息没发出去 超时 资源可以正常下载  麻烦大大帮忙看下吧 2020-06-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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

6. HttpRequest如何发送JSON数据 [ 92%]

HttpRequest如何发送JSON数据 发送JSON数据         var logReq = new laya.net.HttpRequest();         logReq.once(Laya.Event.COMPLETE,this,this.onComplete);         logReq.send("http://127.0.0.1:3001/login", "username: 'lxd', password: 'lxd'",         'post', "json...

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

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

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

8. laya.core.js中HttpRequest的bug报告 [ 90%]

laya.core.js中HttpRequest的bug报告 var HttpRequest { ...... __proto.send=function(url,data,method,responseType,headers){ (method)&& (method="get"); 应该是(method===void 0)&& (method="get"); 否则无法使用post ...... } ...... } 2016-12-01 添加评论 免费帖 --> 分享 ...

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

9. 用Laya.HttpRequest请求数据拿不到数据?(已解决) [ 89%]

Laya.HttpRequest请求数据拿不到数据?(已解决) 用Laya.HttpRequest请求数据,拿不到数据也没有报错? 试过post和get两种方式都拿不到,之后尝试在本地写php输出也拿不到 由于没有报错所以一头雾水,之前有过关于跨域的报错,添加...

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

10. HttpRequest无法发送除字符串以外的数据 [ 88%]

HttpRequest无法发送除字符串以外的数据 laya现在的HttpRequest类无法发送字符串以外的数据,服务器收到的都是空的,我看了下源码, ,10905行的http.send(data)可能需要改一下,我用XMLHttpRequest类send()的时候,json数据都是先用JSON.string...

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