例子 :
// 设置 wx.setTabBarBadge({ index: 0, // 第几个tabBar text: '1', // 要显示的文案 }) // 移除 setTimeout(()=> { wx.removeTabBarBadge({ index: 0, }) }, 5000);