"pages/index/index",

"pages/logs/logs",

"pages/index/web",

"pages/index/share",

"pages/index/downloadimage",

"pages/index/web2",

"pages/index/web3",

"pages/index/getopenid"

],

"window": {

"backgroundTextStyle": "light",

"navigationBarBackgroundColor": "#fff",

"navigationBarTitleText": "WeChat",

"navigationBarTextStyle": "black"

},

// "tabBar": {

// "list": [

// {

// "pagePath": "pages/index/index",

// "text": "首页",

// "iconPath": "/image/icon-1.png",

// "selectedIconPath": "/image/icon-1.png"

// },

// {

// "pagePath": "pages/index/downloadimage",

// "text": "下载",

// "iconPath": "/image/icon-3.png",

// "selectedIconPath": "/image/icon-3.png"

// },

// {

// "pagePath": "pages/index/share",

// "text": "分享",

// "iconPath": "/image/icon-4.png",

// "selectedIconPath": "/image/icon-4.png"

// },

// {

// "pagePath": "pages/logs/logs",

// "text": "日志",

// "iconPath": "/image/icon-2.png",

// "selectedIconPath": "/image/icon-2.png"

// }

// ],

// "selectedColor": "#0088AA"

// },

"networkTimeout": {

"request": 10000,

"downloadFile": 10000

},

"debug": true

}

一加tabBar这段的注释,就报错。错误如下:

VM3932:2 Expecting 'STRING', got INVALID

  15 |     "navigationBarTitleText": "WeChat",

  16 |     "navigationBarTextStyle": "black"

> 17 |   },

     |   ^

  18 | // "tabBar": {

  19 | //   "list": [

  20 | //     {

有试着把这个段注释的内容放到整个大括号外面去,也一是一样的报错!

所以有时感觉微信小程序挺搞笑的~~~

03-14 10:20