app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID

版权声明:博客知识产权来源命运的信徒,切勿侵权 https://blog.csdn.net/qq_37591637/article/details/86685144

控制台对app.json报错:

 VM1945:2 app.json Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[',']', got INVALID。


app.json代码如下:

{
  "pages": [
    "pages/index/index"
            ],
  //底部
  "tabBar": {
    "list": [
      {
        "pagePath": "pages/index/index",
        "text": "首页"
      },
      {
        "pagePath": "pages/userConsole/userConsole",
        "text": "日志"
      }
    ]
  },
  //设置网络超时时间
  "networkTimeout": {
    "request": 10000,
    "downloadFile": 10000
  },
  "window": {
    "backgroundColor": "#00991f",
    "backgroundTextStyle": "light",
    "navigationBarBackgroundColor": "#00991f",
    "navigationBarTitleText": "铜陵网站开发平台",
    "navigationBarTextStyle": "white"
  }
}

原因是在app.json中不能有注释,将上面注释部分去掉,就可以了
 

猜你喜欢

转载自blog.csdn.net/qq_37591637/article/details/86685144