AJAX是Rest API吗 [英] Is AJAX a Rest api

查看:80
本文介绍了AJAX是Rest API吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我一直在研究Ajax.因此,根据我的说法,AJAX使用XML以HTML格式显示内容.但是现在这是否意味着它是Rest API.

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.

推荐答案

AJAX是一组(通常是)客户端Web开发技术,而REST是用于发送和处理HTTP请求的体系结构样式.因此,您可以使用AJAX发送RESTful请求.REST API通常不使用AJAX来实现,但是可以由AJAX客户端访问.

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.

Internet上有关AJAX和REST(API)的信息很多.应该很容易找到.

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

这篇关于AJAX是Rest API吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆