axios是什么?为什么要进行二次封装?
最新推荐文章于 2024-05-18 15:09:49 发布
一、axiosAxios 是一个基于 promise 的 HTTP 库,可以用在浏览器和 node.js 中。用法demo:①、get请求axios.get('/user?ID=12345') .then(function (response) { console.log(response); }) .catch(function (error) { console.log(error); });①、post请求 axios.post('/user', { first
摘要由CSDN通过智能技术生成