# uni.setNavigationBarTitle(options)

动态设置当前页面的标题

# # Parameters

name type required default description
options SetNavigationBarTitleOptions YES - -

# # SetNavigationBarTitleOptions Values

name type optinal default description
title string YES - 页面标题
success (result: AsyncApiSuccessResult) => void NO - 接口调用成功的回调函数
fail (error: UniError) => void NO - 接口调用失败的回调函数
complete (res: AsyncApiResult) => void NO - 接口调用结束的回调函数(调用成功、失败都会执行)
# # AsyncApiResult Values
name type optinal default description
errMsg string YES - -
# # SetNavigationBarTitleOptions Compatibility
Android version Android uni-app Android uni-app-x iOS version iOS uni-app iOS uni-app-x
title 5.0 3.97 10.0 x
success 5.0 3.97 10.0 x
fail 5.0 3.97 10.0 x
complete 5.0 3.97 10.0 x

# # Return value

Type optinal
Promise<AsyncApiSuccessResult> NO

# # AsyncApiSuccessResult Values

name type optinal default description
errMsg string YES - -

# # setNavigationBarTitle Compatibility

Android version Android uni-app Android uni-app-x iOS version iOS uni-app iOS uni-app-x
5.0 3.97 10.0 x

# # See also

setNavigationBarTitle

Related Bug

# # General type

# # GeneralCallbackResult

name type optinal default description
errMsg string YES - 错误信息