uni-app动态设置title
作者:互联网
全局取消导航栏设置:
"globalStyle": {
"navigationStyle":"custom"
}
单页面取消导航栏设置:
"pages": [
{
"path": "pages/index/index",
"navigationStyle":"custom",
"style": {
"titleNView": false ,//禁用原生导航栏
}
}
]
动态设置Title:
uni.setNavigationBarTitle({
title: '新标题(可以是变量)'
});
标签:index,title,app,custom,navigationStyle,设置,uni,pages 来源: https://blog.csdn.net/qq286719727/article/details/122755762