What is the nature of xmlhttprequest objects in ajax?

What is the nature of the xmlhttprequest object in

ajax? Is the API encapsulated for operating http? Is the process of the ajax request that the browser starts a thread to make the http request?

Mar.06,2021

each browser has its own set of interfaces for manipulating HTTP.
AJAX is a set of unified operation interface standards that are convenient for developers to call.
each browser will implement the interfaces specified in the standard, and these interfaces will call their own HTTP interface in the background.
during the AJAX request, the browser starts a thread to make the http request.


Is that any importance?


XMLHttpRequest objects belong to window objects like Location/Navigator/History and others;

The

function is to provide a series of API (initiating Synchronize or asynchronous, get/post/put, etc.) to access the HTTP protocol and return the response of the Web server.
can receive and return text documents in any form, depending on the implementation of the browser (compatibility needs to be considered in writing the underlying code)
exists to get data from the server without refreshing the page, which can be partially refreshed.

procedure of ajax request: https://www.cnblogs.com/yasmi.


recommend an article. I'm sure it will make a lot of https://codeshelper.com/a/11.

clearer when you read it.
Menu