Method POST, Status (canceled) error message

前端 未结 6 1467
北恋
北恋 2021-02-20 04:08

I have the following code which is giving me a Method POST, Status (canceled) error message:

$(document).ready(function() {
    var xhr = false;

           


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-20 04:30

    That is because you are calling abort method which possibly triggers the error handler with appropriate error message.

    You can possibly wait for previous ajax request to complete before making the next call.

提交回复
热议问题