这个可以用于mui打开很多子页面时,直接返回首页面…
var wvs
= plus
.webview
.all();
var launch
= plus
.webview
.getLaunchWebview();
var self
= plus
.webview
.currentWebview();
var appid
= plus
.webview
.getLaunchWebview().id
for(var i
= 0, len
= wvs
.length
; i
< len
; i
++) {
if(wvs
[i
].id
== appid
|| wvs
[i
].id
== 'nav_footer.html' || wvs
[i
].id
== 'index.html' || wvs
[i
].id
== 'check_content.html' || wvs
[i
].id
== 'my.html' || wvs
[i
].id
== 'HBuilder') {
continue;
} else {
wvs
[i
].close('none');
}
}
转载请注明原文地址: https://mac.8miu.com/read-500007.html