About state cancel request

Projects were found to have a problem, when I sent some requests for a status request becomes cancel , and I drop a Boy, this is the Editor's Note, was canceled, then after careful investigation found that the following two problem

1.AJAX forms and form simultaneously, (form submission will affect the normal AJAX request)

2. jump to a new page, for example, I send a request in A page, when a request has been sent is not over I jump to the page B, then A page request would automatically be canceled up

Temporarily, then triggered state to issue cancel requests, I found these two issues from my project, I hope to understand more chiefs can communicate with the exchange

 

Guess you like

Origin www.cnblogs.com/suihang/p/11079740.html