Uniapp实现外部链接webview,app可以回退
·
onReady() {
var currentWebview = this.$scope.$getAppWebview().children()[0];
currentWebview.addEventListener("loaded", function() {
currentWebview.evalJS(
"$(\"ul.fed-part-rows a[href*='resource.i847.cn']\").parent().hide();"
);
});
},
onBackPress(e) {
this.$scope
.$getAppWebview()
.children()[0]
.back();
return true;
},//将app的默认回退更改为容器内页面的回退
更多推荐
所有评论(0)