如果text为0的时候wx.settabbarbadge如何隐藏

发布于 8 年前作者 yexiuying8091 次浏览最后编辑 8 年前来自 ask

如下图图设置还是会有红色,代码如下

wx.setTabBarBadge({
 
index: 3,
 
text: ""
 
})
1 回复
chengguiying
chengguiying1 楼6 年前

wx.removeTabBarBadge