In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces how to use Ajax technology, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
The functions of ajax are: 1, update the page without refreshing the page; 2, request data from the server after the page is loaded; 3, receive data from the server after the page is loaded; 4, send data to the server in the background.
This article operating environment: windows7 system, javascript1.8.5 version, Dell G3 computer.
What's the use of ajax?
Do not refresh the page to update the page
Request data from the server after the page is loaded
Receive data from the server after the page is loaded
Send data to the server in the background
What is AJAX?
AJAX = Asynchronous JavaScript And XML.
AJAX is not a programming language.
AJAX simply combines:
Browser built-in XMLHttpRequest object (request data from web server)
JavaScript and HTML DOM (display or use data)
Ajax is a misleading name. Ajax applications may use XML to transfer data, but it is equally common for data to be transferred as plain text or JSON text.
Ajax allows pages to be updated asynchronously by exchanging data with the Web server later in the scenario. This means that parts of the page can be updated without having to reload the entire page.
How AJAX works
1. An event occurs in the web page (page load, button click)
two。 XMLHttpRequest object created by JavaScript
The 3.XMLHttpRequest object sends a request to the web server
4. The server processes the request
5. The server sends the response back to the web page
6. The response is read by JavaScript
7. JavaScript performs the correct action (such as updating the page)
Thank you for reading this article carefully. I hope the article "how to use Ajax Technology" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.