axios 在 vue 中的应用

Axios

Axios 是什么

  • Axios 是一个基于 promise 的 HTTP 库
  • 可以用于浏览器和 node.js

Axios 有哪些特性

  • 支持 Promise API
  • 拦截请求和响应
  • 转换请求数据和响应数据
  • 取消请求
  • 自动转换 JSON 数据
  • 客户端支持防御 XSRF

Axios 浏览器支持

阅读更多
You need to set client_id and slot_id to show this AD unit. Please set it in _config.yml.