https://www.cnblogs.com/ssh-html/articles/6698298.html
这个参考。 关闭新弹出框可以
layer.confirm('确定要批准全部数据吗?', {
btn: ['确定', '取消']
}, function () {
$.ajax({
type: 'POST',
url: "?s=/Achievements/SetPerformStandard/ConfirmTOpConfigEditorAjax",
data: {
'PerId': perid,
'start_time': start_time,
'end_time': end_time,
},
success:function () {
layer.close(layer.index);
}
});
}, function () {
});
js关闭弹出页面,可以用this.parent.close()