IS JSONP classified as AJAX?

Is JSONP a class like AJAX?

I got confused because I realized that XHR needs to be used for asynchronous communication, but when I look at jQuery code for JSONP, it is "wrapped in an AJAX call

jQuery AJAX

if JSONP is not classified as AJAX, then why did jQuery bundle it as an AJAX function, or am I missing something here?

+5
source share
1 answer

If you strictly say that AJAX means "asynchronous communication between JavaScript and the server using the XML format," only a few methods called "Ajax" today correspond to this definition, since even many "XML-HTTP requests" do not transfer XML -data.

, JSONP - , jQuery - "ajax".

"ajax" XMLHTTPRequest, . JSONP, <script>, JSONP GET- .

+7

All Articles