jQuery ajax beforeSend

后端 未结 4 657
遇见更好的自我
遇见更好的自我 2020-12-08 10:48

I have a simple AJAX call that is executing a function on the beforeSend and on complete. They execute fine but the beforeSend is \"se

4条回答
  •  情书的邮戳
    2020-12-08 11:27

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

    http://bugs.jquery.com/ticket/7464

提交回复
热议问题