layui 关于open在子页面中打开父页面方法

父页面

var _tools = {
//方法1
  refresh:function(){ layui.table.reload('dg', { where : layui.$.form.val('fm'), page : { curr : 1 } }); },
//方法2
  refreshTree :function (){ console.log(2); }
}
window.tools = _tools;

parent.tools.refresh();//直接调用即可
 parent.tools.refreshTree();
原文地址:https://www.cnblogs.com/jcx7/p/12744540.html