父页面
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();