大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
...应用。 2.1 Laya.HttpRequest 在LayaAir引擎中 HttpRequest 就是我们发送请求的基本类。HttpRequest 类其实包装的就是原生的 XMLHttpRequest,我们先来了解下 HttpRequest。 2.1.1 原生 XMLHttpRequest 对象 /** * 本对象所封装的原生 XMLHttpRequest 引用。 */ g...
来源: Laya3.0_文档 发布时间: 20250104
...调参数。ReturnsEventDispatcher — 此 EventDispatcher 对象。 请求发送: var hr = new HttpRequest(); hr.once(Event.COMPLETE, this, http.success,[1,2,3]); hr.send("http://localhost:8082/hu_get",{}, "post","json",null); 回调方法: success:function (e,args) { console.log(e); //...
来源: Laya_社区 发布时间: 20180304
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
...问题请先登录 发起人 archerxy 相关问题 TypeScript下HttpRequest发送Post请求有Bug? LayaNative ios上js访问不到JSBridge类中的方法,请求官方帮助, list拉到顶部的时候,如何防止触发多次请求 http 请求 once 的 回调参数,如何传递和接收? 为...
来源: Laya_社区 发布时间: 20170621
如何post发送json数据中包含&&特殊字符,怎么办? 下面用post方法请求一个数据方式如下: var tj:any={"a":"123&&456", "b":"ccc"}; str="paramA="+JSON.stringify(tj); //xhr.send("http:xxx.xxx.com","a=xxxx&b=xxx","post","text"); xhr.send("http:xxx.xxx.com...
来源: Laya_社区 发布时间: 20171013
HttpRequest无法发送除字符串以外的数据 laya现在的HttpRequest类无法发送字符串以外的数据,服务器收到的都是空的,我看了下源码, ,10905行的http.send(data)可能需要改一下,我用XMLHttpRequest类send()的时候,json数据都是先用JSON.string...
来源: Laya_社区 发布时间: 20170426
...ck); // 点击btn2 send_btn1.on(Event.CLICK,this,onSendClick1); // enter键发送默认字体或输入框内字体 Laya.stage.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样...
来源: Laya_社区 发布时间: 20170107
socket通信发送protobuf后服务端是string var msgByteArray:WritingBuffer = new WritingBuffer(); message.writeTo(msgByteArray); msgByteArray.position=0; _socket.send(msgByteArray); send之后服务端收到数据之后为string 2016-12-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20161214
... 2.2.0发布的oppo小游戏,http请求没有报错信息,log也显示发送了,但是服务器显示没收到 附件 : --> demo1.rar 2019-09-04 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折...
来源: Laya_社区 发布时间: 20190904
...ethod:String = get, responseType:String = text, headers:Array = null):void 发送 HTTP 请求。 HttpRequestEvents Event Summary Defined By complete请求结束后调度。HttpRequest error请求出错时调度。HttpRequest progress请求进度改变时调度。HttpRequestProperty Detaild...
来源: laya_api 发布时间: 20170929