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

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

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

...Request 回调方法都没执行 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

112. tree mouseHandler 怎么获取条目 [ 69%]

tree mouseHandler 怎么获取条目 <data>     <item label='folder1' isOpen='true'>             <item label='folder1_1' isOpen='true'>                 <leaf label='1.json' />                 <leaf label='2.json' />     ...

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

113. 打包成APK运行一半崩溃 [ 69%]

...1    8591-8591/? E/LayaConch5﹕ plugin-----------------EngineStart() = /data/user/0/com.mygame.laya/cache//LayaCache/localstorage 04-11 11:17:08.951    8591-8591/? I/LayaBox﹕ localStoragePath=/data/user/0/com.mygame.laya/cache//LayaCache/localstorage 04-11 11:17:09.000    8591-8591/? I/WebV...

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

114. js socket 连接不上 [ 69%]

...tion (ws) { console.log('客户端连接成功!'); ws.on('foo', function(data){ console.log(data); }); }); 自己写的html页面 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> </body> <script type="text/...

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

115. Native(android)下创建二维码并显示在页面上 [ 69%]

...let img:Laya.Image = new Laya.Image();             img.skin = "data:image/png;base64,"+base64OfQrCode;             img.pos(100, 300);             Laya.stage.addChild(img);         }     }      // androidplat,创建二维码     createQrCode(url:str...

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

116. laya.d3.resource.DataTexture2D [ 69%]

...I DocumentationAll Packages | All Classes | Index | Frames No Frames DataTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class DataTexture2DInheritanceDataTexture2D BaseTexture laya.resource.ResourcePublic Properties Hide Inherited Public Properties Show Inherited Public Pro...

来源: laya_api 发布时间: 20170929

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

...);}private function completeHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudioData.bind(this));}private function decodeAudioData(buffer:Object):void{audioBufferSourceNode = audioContext.createBufferSource();audioBufferSourceNode.connect(analyser);analyser.connect(audioContext.destinat...

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

118. websocket请教下,服务器发送过来的数据怎么获取 [ 69%]

...`); this.socket.send("getScore"); } private receiveHandler(msg: any = null,data): void { console.log(`接收到数据触发函数:` + msg); ///////////////////////////////////////////////////////////// 这里的msg,是监听事件的名称,请问下服务器发送过来的数据,我怎么获取.????...

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

119. 用最新版本的IDE开发,用AS语言开发,用HttpRequest加载图片报错,用JS语言开发却可以加载 [ 69%]

...s/monkey2.png","","get","arraybuffer"); } private function completeHandler(data:Object):void { //加载完成返回的data是arraybuffer; //.......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //.......解密逻辑开...

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

120. httpRequest send返回Request failed Status:0 [ 69%]

...arraybuffer"); } } GameMain.prototype.completeHandler = function (URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的...

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