$.ajax beforeSend
$.ajax({ type : 'POST', url : url, async : false, data : postData, beforeSend : function (){ $.blockUI({ fadeIn : 0, fadeOut : 0, showOverlay : false }); }, success : function (returnData) { //stuff }, error : function (xhr, textStatus, errorThrown) { //other stuff }, complete : function (){ $.unblockUI(); } });
더보기