大约有 24 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0033 秒)
...\Administrator\Desktop\LayaAirIDE_1.7.10_beta\resources\app>npm install jsonc-parser 到layaAir IDE的spp目录下,打开命令行工具,输入npm install jsonc-parse命令,再试下能否正常构建压缩! 2017-09-01 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折...
来源: Laya_社区 发布时间: 20170901
打包后报错 Unexpected token in JSON at position 266 VM392:1 gameThirdScriptError Unexpected token in JSON at position 266;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 266 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson...
来源: Laya_社区 发布时间: 20190422
...助! public post(url: string, data: any, callback: (this: void, data: JSON) => void): void { let hr = new Laya.HttpRequest(); hr.once(Laya.Event.COMPLETE, this, (e: any): void => { callback(JSON.parse(hr.data)); }); hr.send(url...
来源: Laya_社区 发布时间: 20190829
...示例摇一摇报错,就解决方案 小游戏项目 加载有中文的json文件 报错 微信小游戏编译报错 用了ByteArray的zlib.min.js后报错 runtime运行报错! 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 编辑了图片 ...
来源: Laya_社区 发布时间: 20170204
...的目录 let tempPackfile = `${workSpaceDir}/.laya/configTemp.json`; let releasePackfile = `${releaseDir}/configTemp.json`; let packfileStr = fs.readFileSync(releasePackfile, "utf8"); config.packfileFullValue = JSON.parse(packfileStr); // ...
来源: Laya_社区 发布时间: 20190426
...集图片加载不出来,怎么办,好像是进入n="string"==typeof n?JSON.parse(n):n,这个n变成“”了,但是加载有路径啊 2020-04-07 0 1 分享 微博 QZONE 微信 熊猫大侠 赞同来自: 头条有时候 加载不到资源 有遇到吗? 2020-04-17 0 1 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20190910
...报错, 报错如下: VM819:1 gameThirdScriptError Unexpected token in JSON at position 787;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 787 at JSON.parse (<anonymous>) at Function.e.getJson (http://127.0.0.1:37389/game/code.js:1:461434) at Fu...
来源: Laya_社区 发布时间: 20180725
发布微信小游戏json格式问题 WAGame.js:3 gameThirdScriptError Unexpected token in JSON at position 27;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 27 at JSON.parse (<anonymous>) at Function.MiniAdpter.getJson (http://127.0.0....
来源: Laya_社区 发布时间: 20180205
...ull; } try{ var dataO=BK.FileUtil.readFile(LocalStorageAdpt.dataPath); var jsonStr; jsonStr=dataO.readAsString(); console.log("jsonStr = " + jsonStr); return JSON.parse(jsonStr); }catch (e){ return null; } return null; } 这个函数中,读取时, jsonStr=dataO.readAsString();这里,会导致j...
来源: Laya_社区 发布时间: 20181030
...box 也没有支持。 要启用装饰器语法,首先要配置 tsconfig.json, 让其支持装饰器语法:{ "compilerOptions": { ...其他配置, "experimentalDecorators": true, //启用装饰器语法 }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but...
来源: Laya_社区 发布时间: 20201223