Is AJAX a Rest api

前端 未结 2 574
醉话见心
醉话见心 2021-02-06 04:31

Recently I have been working on Ajax. So according to me AJAX displays content in HTML using XML. But now does this mean it is a Rest api.

2条回答
  •  北海茫月
    2021-02-06 05:13

    AJAX is a set of (typically) client-sided web development techniques, while REST is an architecture style for sending and handling HTTP requests. So you can use AJAX to send RESTful requests. A REST API is typically not implemented using AJAX, but can be accessed by an AJAX client.

    There is plenty of information on both AJAX and REST (API) on the Internet. It should be easy to find.

提交回复
热议问题