宝哥软件园

微信小程序tabBar不显示:缺少文件 错误消息:错误:iconpath=

编辑:宝哥软件园 来源:互联网 时间:2021-12-18

作者:小程序;从原来的地址;在本文中,提到了一个常见的错误,这是在预览中经常遇到的。这个解释对大家都有帮助。1.1.list中第一个选项卡的地址必须在页面中定义。

pages ' :[' pages/intent/intent ',' pages/services/services ',' pages/profile/profile'],2。列表中的pagePath必须是正确的地址,如果出现不显示的问题,99%的地址都是不正确的。

selectedicinpath ' : ' pages/image/IC _ tab _ profile _ select . png ',#这里也有一个错误,页面应该有斜杠/' icon path ' 3360 ' pages/image/IC _ tab _ profile _ normal . png ',页面路径' :'/pages/profile/profile ',#页面前不应该有斜杠/'text':' My '被正确写成:

list ' :[{ ' selectedicinpath ' : '/pages/Image/IC _ tab _ buy car _ select . png ',' icon path ' : '/pages/Image/IC _ tab _ buy car _ normal . png ',page path ' : ' pages/intent/intent ',' text' : '购车' },]项目结构为

微信小程序tabBar不显示:缺少文件,错误信息:error:iconPath=(图1)

更多资讯
游戏推荐
更多+