大约有 177 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...status < 300) { const responseText = yield response.text(); return JSON.parse(responseText); } else { const errorResponse = yield response.text(); throw new HttpException( `HTTP ${response.status}: ${errorResponse}`, response.status, errorResponse ); } } catch (error) { if (error instanceof HttpE...
来源: Laya_社区 发布时间: 20251115
...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
...,代码如下: ```javascript if( window.conch ) { var devInfo = JSON.parse(window.conch.config.getDeviceInfo()); if (devInfo.devicename === 'iPhone10,3' || devInfo.devicename === 'iPhone10,6') { // iPhone X适配 } } ``` ## 10. 线程模式 LayaNative2.0支持JavaScript脚本逻辑和渲染逻...
来源: Laya2.0_文档 发布时间: 20210715
...let.loadAni(this.aniPath); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError) } private parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Laya.Browser.width / ...
来源: Laya2.0_文档 发布时间: 20210715
....templet.loadAni(this.aniPath); this.templet.on(Event.COMPLETE, this, this.parseComplete); this.templet.on(Event.ERROR, this, this.onError) } private function parseComplete(): void { this.skeleton = this.templet.buildArmature(); Laya.stage.addChild(this.skeleton); this.skeleton.pos(Browser.width / 2...
来源: Laya2.0_文档 发布时间: 20210715
...!!!") var str:String=event.target.data; var jsonObject:Object=JSON.parse(str); trace(jsonObject.status); trace(jsonObject.message) } protected function progressEventHandler(event:ProgressEvent):void { // TODO Auto-generated method stub trace("正在加载"); } protected function openHandler(ev...
来源: Laya_社区 发布时间: 20151217
...ya.ani.js(IDE 2.0.0版本)的4827行左右的Templet类的onComplete及parseData方法中设置this._path的位置处对_path进行路径过滤,去掉它内部包含URL.basePath的部分 __proto.onComplete=function(content){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Load...
来源: Laya_社区 发布时间: 20190419
... this._frw.read('head.json', 'utf8', true) as string; let localHead = JSON.parse(localHeadStr) as RootDesc; await this._gitfs.setRoot(localHead.root); } catch (e) { } } 实际使用的时候,还要自己实现版本管理,界面,下载进度提示等功能。为了实现这些功能可能需...
来源: Laya3.0_文档 发布时间: 20251010
...onShapeChange(colShape:ColliderShape):void[override] CharacterController _parse(data:Object):void[override] PhysicsComponent _removeFromSimulation():void[override] CharacterController destroy():void 销毁组件 Component jump(velocity:Vector3 = null):void 跳跃。 CharacterController mo...
来源: Laya2.0_api 发布时间: 20190513
...() { return __awaiter(this, void 0, void 0, function* () { let json = JSON.parse(fs.readFileSync("outConfig.json")); this.BaseURL = emiter_1.emiter.BaseURL = json.from; this.outfile = json.out; this.createAS = json.createAS; this.layajsURL = json.layajsURL; this.tsCongfig = json.tsConfig; this.filte...
来源: Laya_社区 发布时间: 20200925