ajax request was successful but returned error method has been entered, the browser returns a status of canceled

The project has a simple ajax query that returns a collection of page display, after finishing the background debug normal, but after the ajax return has been entered into the error without success method, but obviously is asynchronous, but the webpage to check behind the address bar followed by a '? 'Several alert method to set the debug view in a browser, found in the pop-up alert suggesting a step in the state canceled, as shown below
Write pictures described here
and then check the status of Internet search, to find a reason, because I have a form form , the form action is not set, just jump to the way I set up and verify it is not empty, the specified format, because this form form and click ajax trigger event on the button at the same time, while '? 'Traditional values obviously get, get, and so the post request collision. I will remove the form and then use other methods to verify is not being given.

Published 64 original articles · won praise 103 · views 90000 +

Guess you like

Origin blog.csdn.net/P_Doraemon/article/details/80527395