微信小程序 动态改变默认菜单 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

猜你喜欢

转载自www.cnblogs.com/xulongyang/p/10402387.html
今日推荐