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

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

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_示例 发布时间: 20251130

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_示例 发布时间: 20251130

7. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 96%]

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

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

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

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

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

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

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