大约有 105 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0035 秒)
...et = new Laya.Templet(); this.m_templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.m_templet.on(Laya.Event.ERROR,this,this.onError); this.m_templet.loadAni("res/spine/goblins/goblins.sk"); } private onError():void { console.log("parse error"); } private parseComplete() : void { let skel...
来源: Laya_社区 发布时间: 20180126
...Str=dataO.readAsString(); console.log("jsonStr = " + jsonStr); return JSON.parse(jsonStr); }catch (e){ return null; } return null; } 这个函数中,读取时, jsonStr=dataO.readAsString();这里,会导致json读出是乱码,或者读出解析不出里边的内容。 看内容是乱码了,...
来源: Laya_社区 发布时间: 20181030
...e (file:///D:/work/test2/bin/libs/laya.html.js:1213:39) at Function._parseXML (file:///D:/work/test2/bin/libs/laya.html.js:1270:38) at Function._parseXML (file:///D:/work/test2/bin/libs/laya.html.js:1228:31) at Function.parse (file:///D:/work/test2/bin/libs/laya.html.js:1222:23) ...
来源: Laya_社区 发布时间: 20190926
...//D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1213:39) at Function._parseXML (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1270:38) at Function._parseXML (file:///D:/LayaTest/TestHtml2.2.0/bin/libs/laya.html.js:1228:31) at Function.parse (file:///D:/LayaTest/TestHtml2.2.0/bin...
来源: Laya_社区 发布时间: 20191028
...以绕过引擎 先以二进制方式加载文件 然后通过JSON.parse解析对象 2018-05-31 1 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: js是脚本,不需要 2018-05-31 0 7 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起...
来源: Laya_社区 发布时间: 20180531
....templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2, Browser...
来源: Laya2.0_文档 发布时间: 20210715
...ect/laya-air/myLaya1/bin/js/bundle.js:14640:23) at Function.Scene3D._parse (file:///D:/fish_project/laya-air/myLaya1/bin/js/bundle.js:65462:21) 2018-11-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 没事喝两杯 相关问题 ...
来源: Laya_社区 发布时间: 20181115
...t frame of tracey.items) { // frame.fileName const sourceMapContent = JSON.parse(readFileSync(mapFilePath, 'utf8')); const consumer = await new sourceMap.SourceMapConsumer(sourceMapContent); // console.log(frame); // originalPosition不仅仅是行列信息,还有错误发生的文件 originalPosi...
来源: Laya_社区 发布时间: 20190528
...e(layer:int):Boolean 通过蒙版值获取蒙版是否显示。 Camera _parse(data:Object, spriteMap:Object):void[override] Camera _sortCamerasByRenderingOrder():void 通过RenderingOrder属性对摄像机机型排序。 BaseCamera addAllLayers():void 增加所有图层。 BaseCamera addChild(...
来源: Laya2.0_api 发布时间: 20190513
...X的头帘适配,代码如下: if( window.conch ) { var devInfo = JSON.parse(window.conch.config.getDeviceInfo()); if (devInfo.devicename === 'iPhone10,3' || devInfo.devicename === 'iPhone10,6') { // iPhone X适配 } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更新...
来源: Laya3.0_文档 发布时间: 20251010