页面有多个webview
var currentWebview = proxy.$parent.$scope.$getAppWebview(); //获取当前页面的webview对象,此对象相当于html5plus里的plus.webview.currentWebview()
console.log(currentWebview)
setTimeout(function() {
var wv1 = currentWebview.children()[1];
wv1.setStyle({
top: 390,
height: 100
})
}, 1000);
用setStyle 设置top了 超出页面滚动不了
0 个回复