layui提示新增(删除等)成功

方法一:
layer.msg("开票成功!", {
    icon: 6,
    time: 500
}, function () {
    parent.window.location.reload();
    var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
    parent.layer.close(index);
});

方法二:

var index = parent.layer.getFrameIndex(window.name);
layer.msg("开票成功!");
setTimeout(function () {
    layer.close(index);
    parent.location.reload();
},500);

 

 

你可能感兴趣的:(Xadmin前端)