刷新当前页:

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(); //刷新父页...