首页 > 技术文章 > plus.webview更新上一个页面的信息

cxf1992 2019-03-24 15:46 原文

let currentWebview = plus.webview.currentWebview();
      let backWebview = currentWebview.opener();
      backWebview.evalJS('updata()');
      setTimeout(function(){
        currentWebview.close();
      },1000);
 
updata()即上个页面需要更新的函数。
 
let _this = this;
window.updata= function () {
    _this.updata();//需要更新的内容写在函数里。
  }
 

推荐阅读