This article introduces how to use ajax to write and log on. This article introduces how to use ajax to write and log on.
The full name of AJAX is Asynchronous JavaScript and XML (Asynchronous JavaScript and XML ).
Advantages of ajax:
1. the biggest difference is that the page is refreshing and the user experience is very good.
2. use asynchronous mode to communicate with the server, providing more rapid response capabilities ..
3. some of the previous server workload can be transferred to the client, and the client's idle capabilities can be used to handle the workload, reduce the load on servers and bandwidth, and save space and bandwidth rental costs. In addition, it reduces the burden on the server. the ajax principle is to "retrieve data on demand", which can minimize the burden on the server caused by redundant requests and responses.
4. based on standardized and widely supported technologies, you do not need to download plug-ins or applets.
5. ajax can make internet applications smaller, faster, and more friendly.
Here I use ajax to write a simple login page: The first thing I need is the database login table,
The following is the logon page code. first, introduce the jquery package.
Untitled Document