Why is it called XMLHttpRequest?

后端 未结 3 2002
囚心锁ツ
囚心锁ツ 2020-12-15 14:46

I always wonder why this object is called like that?

The body of your request does not need to be in XML format. Also, data received from server can be fetched as JS

3条回答
  •  情话喂你
    2020-12-15 15:38

    AJAX stands for Asynchronous Javascript and XML. In the beginning all communication was with XML (HTML is also XML-like, and XHTML is XML). JSON came later. So it is for historical reasons. (Also take a look at this wiki page)

提交回复
热议问题