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

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

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. HttpRequest post方式 怎么传数组或者对象 [ 99%]

HttpRequest post方式 怎么传数组或者对象 教程里是xhr.send("http:xxx.xxx.com","a=xxxx&b=xxx","post","text"); 第二个参数是string的,如果其中一个变量a是数组怎么写 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

3. HttpRequest post 请求不能传对象? [ 99%]

HttpRequest post 请求不能传对象? 代码: xhr.send(requestUrl + "/game/courtyard/take-down", "a=1&b=2", "post", "json", [ "Content-Type", "application/json; charset=utf-8", "token", getQueryString("token") ]); 按照官方方案请求使用"a=1&b=2"显示还是字符串   正确...

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

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

5. 网络和格式-POST [ 98%]

...gColor = "#232628"; this.connect(); this.showLogger(); } connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this...

来源: Laya2.0_示例 发布时间: 20240929

6. 网络和格式-POST [ 98%]

... var Stage = Laya.Stage; var Text = Laya.Text; var Event = Laya.Event; var HttpRequest = Laya.HttpRequest; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var hr, logger; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.sta...

来源: Laya_示例 发布时间: 20240929

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

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

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

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

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

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