父页面
layui.use(... function(){
refresh:function(){
layui.table.reload('dg', {
where : layui.$.form.val('fm'),
page : {
curr : 1
}
});
},
//刷新树
refreshTree :function (){
console.log(2);
}
window.tools = _tools;
})
parent.tools.refresh();//直接调用即可
parent.tools.refreshTree();