uniapp 隐藏滚动条

2020-11-14

//在page.json
{
    "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
        {
            "path": "pages/index/index",
            "style": {
                "navigationBarTitleText": "uni-app",
                "app-plus":{
                    "scrollIndicator":"none" //当前页面不显示滚动条
                }
            }
        }
    ],
    "globalStyle": {
        "navigationBarTextStyle": "black",
        "navigationBarTitleText": "uni-app",
        "navigationBarBackgroundColor": "#F8F8F8",
        "backgroundColor": "#F8F8F8",
        "app-plus":{
            "scrollIndicator":"none" //全局 在APP页面都不显示滚动条
        }
    }
}


推荐阅读更多精彩内容