大佬帮忙看下这个代码吧,app.json一直报错,实在找不到原因?标点都没问题一直在大括号和逗号报错
发布于 7 年前 作者 suming 14832 次浏览 来自 问答

{

"pages":

[

"pages/index/index",

"tabBar":

{

"color": "#959394",

"selectedColor": "#959394",

"backgroundColor": "#f0f0f0",

"borderStyle": "white",

"list":

[

{

"pagePath": "pages/tabOne/tabOne",

"iconPath": "pages/images/10.jpg",

"selectedIconPath": "pages/images/10.jpg",

"text": "首页"

},

{

"pagePath": "pages/tabTwo/tabTwo",

"iconPath": "pages/images/9.jpg",

"selectedIconPath": "pages/images/9.jpg",

"text": "朋友"

},

{

"pagePath": "pages/tabThree/tabThree",

"iconPath": "pages/images/11.jpg",

"selectedIconPath": "pages/images/11.jpg",

"text": "我的"

}

]

},

"pages/welcome/welcome",

"pages/logs/logs"

],


"window":

{

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#fff",

"navigationBarTitleText": "WeChat",

"navigationBarTextStyle": "black"

}

1 回复
{
  "pages":
    [
      "pages/index/index",
      "pages/welcome/welcome",
      "pages/logs/logs",
      "pages/tabThree/tabThree",
      "pages/tabTwo/tabTwo",
      "pages/tabOne/tabOne"
    ],
    "tabBar":
    {
      "color": "#959394",
      "selectedColor": "#959394",
      "backgroundColor": "#f0f0f0",
      "borderStyle": "white",
      "list":
        [
          {
            "pagePath": "pages/tabOne/tabOne",
            "iconPath": "pages/images/10.jpg",
            "selectedIconPath": "pages/images/10.jpg",
            "text": "首页"
          },
          {
            "pagePath": "pages/tabTwo/tabTwo",
            "iconPath": "pages/images/9.jpg",
            "selectedIconPath": "pages/images/9.jpg",
            "text": "朋友"
          },
          {
            "pagePath": "pages/tabThree/tabThree",
            "iconPath": "pages/images/11.jpg",
            "selectedIconPath": "pages/images/11.jpg",
            "text": "我的"
          }
        ]
    },
  "window":
    {
      "backgroundTextStyle": "light",
      "navigationBarBackgroundColor": "#fff",
      "navigationBarTitleText": "WeChat",
      "navigationBarTextStyle": "black"
    }
}
回到顶部