mui.fire( 目标窗口的webview , '自定义事件名' ,{参数列表};)

目标窗口监听这个自定义事件
window.addEventListener('自定义事件名',function(){

})


//需要刷新的页面的id
var pageId = "examples/shopping.html";
//根据页面id获取页面
var page = plus.webview.getWebviewById(pageId);
mui.fire(page, 'refresh');

 

目标页面接收的:

window.addEventListener('refresh', function(event) { //自定义,点击底部购物车页面刷新
  location.reload();
});

 



 

相关文章:

  • 2022-02-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-22
相关资源
相似解决方案