plus.webview更新上一个页面的信息

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();//需要更新的内容写在函数里。
  }
 
posted @ 2019-03-24 15:46  cxf2018  阅读(730)  评论(0编辑  收藏  举报