android webview 获取 title,【报Bug】app webview 安卓机 title显示问题
// #ifdef APP-PLUS
var that = this;
that.statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
var w = plus.webview.create(this.weburl, 'id', {
// top: uni.getSystemInfoSync().statusBarHeight + 44 ,//放置在titleNView下方。如果還想在webview上方加個地址欄的什么的,可以繼續(xù)降低TOP值
//因為設(shè)置top之后 webview的高度依然不變會往下移 底部會被遮住??所以設(shè)置一下高度
// ?height: uni.getSystemInfoSync().windowHeight - 44 - uni.getSystemInfoSync().statusBarHeight,
titleNView:{
"autoBackButton": true,
"type": "default",
"backgroundColor": "#FFFFFF",
titleText:'xx'
}
}, {
preload: 'preload webview'
}); // 可直接通過以下方法獲取preload值
var currentWebview = this.$mp.page.$getAppWebview() //獲取當(dāng)前頁面的webview對象
currentWebview.append(w); //一定要append到當(dāng)前的頁面里!!!才能跟隨當(dāng)前頁面一起做動畫,一起關(guān)閉
// #endif
總結(jié)
以上是生活随笔為你收集整理的android webview 获取 title,【报Bug】app webview 安卓机 title显示问题的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: amr 转mp3 java_JAVA 音
- 下一篇: csv python 只写一次_在Pyt
