大约有 27 项符合查询结果, 库内数据总量为 30,935 项。 (搜索耗时: 0.0033 秒)
...tatus <= 207)) { //cc.log("response:\n" + xhr.responseText); var data = JSON.parse(xhr.responseText); //console.log(data); if (data.result_status == 1 && data.top_list) { WxRankManage._top_list = data.top_list; //对排行数据进行处理 //wb.EventManager.dispatchCustomEvent(wb.HTTPRE,...
来源: Laya_社区 发布时间: 20180807
...助! 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
...y){ return Storage.support ? Storage.items.getItem(key):null; } Storage.getJSON=function(key){ return JSON.parse(Storage.support ? Storage.items.getItem(key):null); }?:不是js的写法吧... 2018-11-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...
来源: Laya_社区 发布时间: 20181122
...击区域偏移,求大大们解答 微信小程序—未找到入口 app.json 文件,或者文件读取失败,请检查后重新编译。 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 小游戏项目 加载有中文的json文件 ...
来源: Laya_社区 发布时间: 20171113
...报错, 报错如下: 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
...aya.Event.COMPLETE, this, function(data:any){ var data = JSON.parse(data); }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个回复 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20240121
发布微信小游戏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
...box 也没有支持。 要启用装饰器语法,首先要配置 tsconfig.json, 让其支持装饰器语法:{ "compilerOptions": { ...其他配置, "experimentalDecorators": true, //启用装饰器语法 }, } 但修改完配置编译的时候会报错:This syntax requires an imported helper but...
来源: Laya_社区 发布时间: 20201223