In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
What does Ajax refer to? in view of this question, this article introduces the corresponding analysis and answer in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
AJAX, or "AsynchronousJavascriptAndXML": is a technique that does not cause page jumps, asynchronously requests to load content and rewrites partial page content.
It can also be simply understood as sending a request to the server through JS.
Synchronous processing:
That is, when we send a request to the server through a page, our entire page is inoperable until the end of the server response, and we have to refresh the entire page even if only a small part of the content of the entire page changes.
Asynchronous processing:
Send a request to the server through AJAX. When the server responds to the request normally, the response information will be sent directly to AJAX, and AJAX can do some operations according to the content of the server response. And the page can be partially modified without the need for a full page refresh.
Request object: XMLHttpRequest
The XMLHttpRequest object is used to encapsulate the request message, and all the request information we send to the server needs to be encapsulated in this object.
Get XMLHttpRequest object. There are differences between different browsers.
Methods of XMLHttpRequest object
Open (method,url,async): used to set the basic information of the request and receive three parameters.
Parameter 1: method
Receives a string indicating the method of the request: get or post
Parameter 2: url
The requested address, which receives a string
Parameter 3: Assync
Whether the request sent is asynchronous, receiving a Boolean value. ① true is an asynchronous request ② false is not an asynchronous request (synchronous request)
Send (string): used to send a request to the server and can receive a parameter
String parameter
This parameter is only needed when sending a post request. Used to set the request body
SetRequestHeader (header,value): used to set the request header
Parameter 1: header parameter
String type, the name of the request header to be set
Parameter 2: value parameter
String type, the value of the request header to set
The answer to the question about what Ajax specifically refers to is shared here. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.