版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Alex81320/article/details/86136794
显示数字或文字
wx.setTabBarBadge({
index: 4,
text: ‘new’, //可改
});
移除文字
wx.removeTabBarBadge({
index: 4,
});
//加红点
wx.showTabBarRedDot({
index: 4,
});
移除红点
wx.hideTabBarRedDot({
index: 4,
});