微信小程序
wx.setTabBarStyle
# wx.setTabBarStyle(Object object)
基础库 1.9.0 开始支持,低版本需做兼容处理。
以 Promise 风格 调用:支持
需要页面权限:当前是插件页面时,宿主小程序不能调用该接口,反之亦然
小程序插件:不支持
微信 Windows 版:支持
# 功能描述
动态设置 tabBar 的整体样式
# 参数
# Object object
# 示例代码
wx.setTabBarStyle({
color: '#FF0000',
selectedColor: '#00FF00',
backgroundColor: '#0000FF',
borderStyle: 'white'
})