我是靠谱客的博主 激昂月亮,最近开发中收集的这篇文章主要介绍app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID,觉得挺不错的,现在分享给大家,希望可以做个参考。
概述
控制台对app.json报错:
VM1945:2 app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID。
app.json代码如下:
{
"pages":[
"pages/main/simple/text",
"pages/main/advanced/text",
"pages/main/mine/text",
"pages/main/recharge/text",
"pages/logs/logs"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#444444",
"navigationBarTitleText": "文字",
"navigationBarTextStyle":"#ffffff"
}
,
"tabBar": {
"color": "#7A7E83",
"selectedColor": "#3cc51f",
"borderStyle": "black",
"backgroundColor": "#ffffff",
"list": [
// {
// "pagePath": "pages/main/advanced/text",
// "iconPath": "pages/image/advance.png",
// "selectedIconPath": "pages/image/advance_HL.png",
// "text": "高级"
// },
{
"pagePath": "pages/main/simple/text",
"iconPath": "pages/image/basic.png",
"selectedIconPath": "pages/image/basic_HL.png",
"text": "基础"
},
"pagePath": "pages/main/advanced/text",
"iconPath": "pages/image/advance.png",
"selectedIconPath": "pages/image/advance_HL.png",
"text": "高级"
},
{
"pagePath": "pages/main/mine/text",
"iconPath": "pages/image/mine.png",
"selectedIconPath": "pages/image/mine_HL.png",
"text": "我的"
}
]
}
}
查看了文档,原因是在app.json中不能有注释,将上面注释部分去掉,就可以了
最后
以上就是激昂月亮为你收集整理的app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID的全部内容,希望文章能够帮你解决app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复