Axios是一个基于promise的HTTP库,可以用在浏览器和node.js中。
从浏览器中创建XMLHttpRequest
从node.js创建http请求
支持Promise API
拦截请求和响应
转换请求数据和响应数据
取消请求
自动转换JSON数据
客户端支持防御XSRF