刷新当前页:
layer.msg(data.msg, {icon:1,time:1000},function(){
setTimeout('window.location.reload()',1000);
});
关闭当前页,并刷新父页:
layer.msg(data.msg, {icon:1,time:1000}, function(){
var index = parent.layer.getFrameIndex(window.name);
//parent.location.reload(); //刷新父页面
parent.layer.close(index);
});
重载父页数据表格:
var index = parent.layer.getFrameIndex(window.name);
parent.layui.table.reload('items');//重载父页表格,参数为表格ID
parent.layer.close(index);