微信小程序 动态改变默认菜单 tabbar 的值

wx.setTabBarItem({
index: 0, 
text: 'home',
iconPath: '/path/to/iconPath',
selectedIconPath: '/path/to/selectedIconPath'
})
 
详情参考微信小程序API
https://developers.weixin.qq.com/miniprogram/dev/api/wx.showNavigationBarLoading.html
posted @ 2019-02-19 17:16  小白洋  阅读(10243)  评论(0编辑  收藏  举报