Home > Article > Web Front-end > How to hide the back button in uniapp
Uniapp method to hide the return button: 1. Hide the scroll bar, the code is ["scrollIndicator": "none"]; 2. Turn off the bounce effect, the code is ["bounce": "none"]; 3 , configure the button, the code is ["text":"Cancel"].
The operating environment of this tutorial: windows7 system, uni-app2.5.1 version, thinkpad t480 computer.
Recommended (free): uni-app development tutorial
How to hide the back button in uniapp:
Use syntax to hide
"autoBackButton":false,
{ "path" : "pages/search/search", "style" : { "enablePullDownRefresh":true, "app-plus":{ "scrollIndicator":"none",//隐藏滚动条 "bounce":"none",//关闭反弹效果 "titleNView":{ "autoBackButton":false, // 搜索框配置 "searchInput":{ "align":"left", "backgroundColor":"#F7F7F7", "borderRadius":"4px", "placeholder":"搜索糗事", "placeholderColor":"#CCCCCC", "disabled":false }, //配置按钮 "buttons":[ // 右边 { "color":"#000000", "colorPressed":"#BBBBBB", "float":"right", "fontSize":"16px", "text":"取消" } ] } } } }
Related free learning recommendations: Programming video
The above is the detailed content of How to hide the back button in uniapp. For more information, please follow other related articles on the PHP Chinese website!