Nima...
A simple form submission, unexpectedly give me the whole straight depressed.
Originally is a preservation function, several predecessors have used the AJAX submission, I did not change to submit. Then the pit-daddy came.
I wrote a <form></form> in my form (it's not necessary to write this tag, but I wrote it.) And the Action property is empty)
The label of the Save button is a button. But the type did not specify a submit.
The Nima nightmare came, and the preservation was so. But the jump location.href after the callback function sometimes works. TMD I investigate this give me tired, two days did not sleep steadfast.
I also found, for Mao Ajax jump back, he always refresh the current page, and not go to the jump page. According to the truth that you do not go location.href this sentence, you can not be in place to refresh AH. I didn't bother him at first, and then I changed the button tag to a tag. Found that Ah, Ajax really does not refresh the current page again. College, I guess it's not the button tag that binds something. Wipe, it turns out he's gone. Submit the submission. The hell with the pit daddy.
A good solution is that I deleted the <form> tag directly.
Form form, Submit,ajax submit