显示数字或文字
wx.setTabBarBadge({
index: 4,
text: ‘new’, //可改
});
移除文字
wx.removeTabBarBadge({
index: 4,
});
//加红点
wx.showTabBarRedDot({
index: 4,
});
移除红点
wx.hideTabBarRedDot({
index: 4,
});
显示数字或文字
wx.setTabBarBadge({
index: 4,
text: ‘new’, //可改
});
移除文字
wx.removeTabBarBadge({
index: 4,
});
//加红点
wx.showTabBarRedDot({
index: 4,
});
移除红点
wx.hideTabBarRedDot({
index: 4,
});