It seems that AJAX is getting increasingly popular. As a WEB application developer, if it doesn't, it will be outdated, and may even be eliminated repeatedly during job search. I am also a WEB application developer. Of course, I also need to "stream by stream". Otherwise, my job will not be guaranteed! Previously, AJAX was implemented one by one using Javascript scripts, Which is cumbersome. After learning Jquery, I feel that it is not that difficult to implement AJAX. Of course, in addition to the Jquery framework, there are other excellent frameworks. Here I will focus on the popular Jquery. Jquery AJAX provides two methods to submit a form. One is to submit data using the url parameter, and the other is to submit a Form (the value of the form Form can be obtained in the background as usual ). In the form to be submitted, if there are many elements, we recommend that you use the second method for submission. Of course, if you want to practice "typing level", the first method is not acceptable, I believe developers do not want to bother themselves! No more nonsense.
First, download Jquery and Jquery. form plug-ins. There are a lot of plug-ins online!
I. data submitted by Url parameters
The Code is as follows: