# uni.switchTab(options)

跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面

# # 参数

名称 类型 必填 描述
options SwitchTabOptions -

# # SwitchTabOptions

名称 类型 必填 描述
url string 需要跳转的 tabBar 页面的路径,路径后不能带参数
success (AsyncApiSuccessResult) => void 接口调用成功的回调函数
fail (UniError) => void 接口调用失败的回调函数
complete (AsyncApiResult) => void 接口调用结束的回调函数(调用成功、失败都会执行)

# # 参见

switchTab

# # 通用类型

# # GeneralCallbackResult

名称 类型 必填 描述
errMsg string 错误信息