uniapp 根组建内 v3引擎 获取webview 使用代码
// #ifdef APP-PLUS
var currentWebview = this.$scope.$getAppWebview() //此对象相当于html5plus里的plus.webview.currentWebview()。在uni-app里vue页面直接使用plus.webview.currentWebview()无效,非v3编译模式使用this.$mp.page.$getAppWebview()
console.info(currentWebview)
setTimeout(function() {
wv = currentWebview.children()[0]
wv.setStyle({top:-0,height:0})
}, 1000); //如果是页面初始化调用时,需要延时一下
// #endif // #ifdef