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

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

31. layaBOX实时语音聊天与微信登陆接口分享 [ 71%]

... next) { var apiinfo = { appid: "123231", secret: "132321132" } var that = this; //获取TOEKN YIM.WXGetAccessToken(apiinfo, function (scope, data) { res.send(data); }); }); router.get('/code',function(req,res,next){ var appid = "123321" //获取CODE YIM.WXGetCode(appid,"http://app.aliiw.com/redirec...

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

32. [LayaNative3]打包安卓发送http发送数据发送后端接收不正确 [ 70%]

...ssword.text }, "post", "text");         http.once(Laya.Event.COMPLETE, this, function(data:any){             var data = JSON.parse(data);         }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

33. HttpRequest 回调方法都没执行 LayaAir 1.7.17 beta JS版本 [ 70%]

...都没执行 LayaAir 1.7.17 beta JS版本 function postData(url,request) { this.http = new Laya.HttpRequest(); //new一个HttpRequest类 this.http.once(Laya.Event.PROGRESS,this,this.onProgress); //数据传输中 this.http.once(Laya.Event.COMPLETE,this,this.onComplete); //数据传输完成后,会...

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

34. 打包app,http无法设置content-type [ 70%]

...or, data?:any)=>void) { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method ===...

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

35. 【官网代码】加载dom音频报错,怎么回事? [ 68%]

...ontext.createAnalyser();analyser.fftSize = 256;Laya.stage.once(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHa...

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

36. tween 的 update 怎么是回调一次!!! [ 68%]

...Gold, {value:__data.gold}, 1000, Laya.Ease.linearNone, Laya.Handler.create(this, function(){                 trace('obGold.value', obGold.value)             }), 0)             tweenGold.update = updateGoldHandler 写法没问题吧!!! 2019-05-20 添加评论 免费帖 --> ...

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

37. HttpRequest感觉没有发成功 [ 68%]

...; xhr.http.timeout = 10000;//设置超时时间; xhr.once(Event.COMPLETE,this,completeHandler); xhr.once(Event.ERROR,this,errorHandler); xhr.on(Event.PROGRESS,this,processHandler); xhr.send("https://www.baidu.com","","get","text"); function processHandler(data){ console.log(data); console.log("pro...

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

38. 关于HttpRequest报错问题 [ 67%]

...cation/x-www-form-urlencoded; charset=utf-8"); xmlHttp.once(Event.COMPLETE,this,onHttpRequestComplete); xmlHttp.once(Event.ERROR,this,errorHandler); xmlHttp.on(Event.PROGRESS,this,processHandler); function onHttpRequestComplete(e){ }; function processHandler(data){ console.log(data); }; function err...

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

39. 官方的示例贴上来,怎么没反映啊 [ 66%]

...反映啊 var JiHuo = (function (_super) { function JiHuo() { JiHuo.super(this); 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_社区 发布时间: 20180419

40. 二进制图片(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 66%]

...", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObjectURL(img.src); // 清除释放; }; img.src = window...

来源: Laya2.0_文档 发布时间: 20210714