什么是axios axios is a promise based HTTP client for the browser and node.js 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 Canc
Axios & fetch api & Promise & POST https://github.com/axios/axios https://appdividend.com/2018/02/20/vue-js-axios-tutorial/#Vue_js_Axios_Post_Example http://codeheaven.io/how-to-use-axios-as-your-http-client/ $ npm i -S axios bug mounted() { c
1.axios 函数对象(可以作为函数使用去发送请求,也可以作为对象调用request方法发送请求) ❀ 一开始axios是一个函数,但是后续又给它添加上了一些属性[ 方法属性] ■ 举例子(axios 函数对象调用axios()自身发送请求或调用属性的方法axios.request()发送请求的原理): <script> //一开始a只是一个函数 var a = function () { console.log('hi'); } var fn = function () { console