在pages.json里要使用这个特性的页面上style配置:
"style" : {
"app-plus": {
"softinputNavBar": "none"
}
}
如果需要js动态设置的话:
this.$mp.page.$getAppWebview().setStyle({ softinputNavBar: 'none' })
恢复:this.$mp.page.$getAppWebview().setStyle({ softinputNavBar: 'auto' })