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

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

猜你喜欢

转载自www.cnblogs.com/jcx7/p/12744540.html
今日推荐