layui.md 327 B

弹出关闭后刷新表格

//先给成功提示,然后关闭弹窗  
layer.msg('保存成功', {icon: 1, time: 1000}, function() {  
    let index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引  
    parent.layer.close(index);  
    parent.layui.table.reload("tableName");  
});