您的浏览器需要启用 JavaScript 才能正常访问此网站。
Hotline:15911225507
Long Xiao
Login
Home-All Questions-Javascript-Main Content

ajax,axios,fetch的区别

大理旅行大理旅行Javascript3 years ago002.61K

ajax通过javascript的异步通信,通过服务器获取XML文档从中提取数据,再更新当前网页的相应部分,不会刷新整个网页。

axios是通过Promise实现ajax技术的一种封装,而fetch与ajax平级。

fetch是ES6提出来的,是ajax的替代品,基于promise设计的,比之ajax代码更加简洁,没有用到XMLHttpRequest对象,使用原生js。

大理旅行

大理旅行

Lv1
This guy is so lazy, he won't even write a few words!
From: Course-JavaScript 教程
391
Loading...
Share:
Long Xiao
No answers yet, be the first?
我要回答
Accepted answer rewards 100 points
Long Xiao
Please login first