The previous article introduced the overall idea of using Ajax + JSON + jquery to develop a new website without any need. For beginners to better understand this articleArticleLet's talk about the basic usage of Ajax and give an example.
Ajax is "Asynchronous JavaScript and XML" (Asynchronous JavaScript and XML ).
I won't talk much about anything else. Because jquery is a good plug-in to the Ajax framework, I used jquery to seal the converted Ajax. Therefore, a jquery library is referenced in this example.
The business logic to be implemented in this example is simple: you do not need to check whether the user name and password you entered are correct, which is a function used by many websites. We use an image to display the results. As follows:
Figure 1 input not started figure 2 verification started
Figure 3 verification correctness figure 4 verification error
Download link for this example: http://download.csdn.net/source/2697656
due to time issues, I will talk about this for the moment. If you are free, I will explain the instance further.