首页 > TAG信息列表 > selectedIconPath

tabBar导航菜单代码

"tabBar": {     "color": "#999",     "selectedColor": "#ff2d4a",     "backgroundColor": "#fafafa",     "list": [       {         "pagePath": "pages/index/index&

tabBar.list[1].iconPath 文件不存在 ;tabBar.list[1].selectedIconPath 文件不存在

微信小程序在做tabBar选项卡保存运行的时候突然报错,显示tabBar.list[1].iconPath 文件不存在;tabBar.list[1].selectedIconPath 文件不存在 因为是新手,所以搞鼓了好久才发现出现这种情况可能是iconPath路径没写对,也可能是写路径是把单词写错了(我就是这种),所以写的时候一定要认

taro 配置 tabBar

1.src/app.js tabBar: { color: "#666", selectedColor: "#b4282d", backgroundColor: "#fafafa", borderStyle: 'black', list: [{ pagePath: "pages/home/home", iconPath: "./assets/tab-bar/h

小程序底部tapbar

app.json "tabBar": { "color": "#ccc", "selectedColor": "#000000", "backgroundColor": "#FFFFFF", "position": "top", "list": [ {