官方文檔:https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarBadge.html
設(shè)置
wx.setTabBarBadge({
index: 1,//下標(biāo)
text: res.count+''
})
移除
wx.removeTabBarBadge({ //移除taBar右上角的文本
index: 1,//tabBar下標(biāo)
})