status is canceled problem

Problem phenomenon:


 

Occasionally, on the Google browser, the status is canceled:

 when submitting ajax, the status is canceled, causing the ajax request to be terminated.

 

problem causes:

After the URL is changed, the currently executing ajax request will be aborted. The status code for the request will be canceled after aborting.

 

Solution:

Change the default asynchronous of ajax to synchronous:

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325986141&siteId=291194637