var serializeArray = form.serializeArray();
var index = layer.load();
$.post(url, serializeArray, function (result) {
if(200 == result.code) {
result.data = 'submit[refresh]';
$.fn.Messager(result);
} else {
$.fn.Messager(result);
layer.close(index);
}
});
顶层遮罩: