axios调用详解

1. npm install axios
2. import axios from 'axios'
import vueResource from 'vue-resource' Vue.use(vueResource) Vue.prototype.$axios = axios; new Vue({ el:'#app', axios, vueResource }) 3. npm run dev
npm rebuild node-sass
npm install vue-resource --save

【axios调用详解】转载于:https://www.cnblogs.com/stormy/p/10938259.html

    推荐阅读