PHP前端开发

uniapp如何隐藏返回按钮

百变鹏仔 2个月前 (11-21) #uniapp
文章标签 按钮
uniapp隐藏返回按钮的方法:1、隐藏滚动条,代码为【"scrollindicator":"none"】;2、关闭反弹效果,代码为【"bounce":"none"】;3、配置按钮,代码为【"text":"取消"】。

本教程操作环境:windows7系统、uni-app2.5.1版本、thinkpad t480电脑。

推荐(免费):uni-app开发教程

uniapp隐藏返回按钮的方法:

使用语法进行隐藏

"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":"取消"                             }                         ]                     }                }            }        }

相关免费学习推荐:编程视频