美文网首页
Axios 解释

Axios 解释

作者: Bboy_2016 | 来源:发表于2018-03-14 11:30 被阅读109次

    Promise based HTTP client for the browser and node.js(github上链接:https://github.com/axios/axios)。

    Features

    • Make XMLHttpRequests from the browser
    • Make http requests from node.js
    • Supports the Promise API
    • Intercept request and response
    • Transform request and response data
    • Cancel requests
    • Automatic transforms for JSON data
    • Client side support for protecting against XSRF

    特征

    • 从浏览器中创建 XMLHttpRequest
    • 从 node.js 发出 http 请求
    • 支持 Promise API
    • 拦截请求和响应
    • 转换请求和响应数据
    • 取消请求
      自动转换JSON数据
      客户端支持防止 CSRF/XSRF

    兼容性:
    到 IE8 及以上

    相关文章

      网友评论

          本文标题:Axios 解释

          本文链接:https://www.haomeiwen.com/subject/ryffqftx.html