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的默认回退更改为容器内页面的回退
Uniapp实现外部链接webview,app可以回退
最新推荐文章于 2024-07-19 14:55:39 发布