var ws=plus.webview.currentWebview();
console.log( "当前Webview窗口:"+ws.getURL() );
输出的是file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/client_index.html
应该如何获取到当前的url
var ws=plus.webview.currentWebview();
console.log( "当前Webview窗口:"+ws.getURL() );
输出的是file:///storage/emulated/0/Android/data/io.dcloud.HBuilder/apps/HBuilder/www/client_index.html
应该如何获取到当前的url
2 个回复
4***@qq.com
解决了吗
南方有只沙雕
试一下这样
let ws = plus.webview.currentWebview();
let child = ws.children()[0]
console.log( "当前Webview窗口:", child.getURL() );