使用uniapp 做微信小程序的开发
pages.json文件,提示: [JHINT]Expected "y to match '"[" from line 1 and instead saw "':". 找了好久的配置这些呀,最终发现还是语法问题,不过和提示的位置不太一致; 最后发现: 对象中,应该是 逗号 的写成了 分号,改了就好了。 "tabBar": { "list": [ { "pagePath": "pages/home/home"; "text": "首页"; "iconPath": "images/cart1.png"; "selectedIconPath": "images/cart1.png" }, { "pagePath": "pages/home/home"; "text": "首页"; "iconPath": "images/cart1.png"; "selectedIconPath": "images/cart1.png" }, { "pagePath": "pages/shoppingCart/shoppingCart"; "text": "购物车"; "iconPath": "images/cart1.png"; "selectedIconPath": "images/cart1.png" } ] }, 所以, 遇到这类bug,提示的行数,和内容不太准确; 整个文件都要进行语法检查 |
|
|