1.目前为止,axios 不能 Vue.use(axios)
2.axios.interceptors.request.use() //发送请求配置
3.axios.interceptors.response.use() //接收请求配置
4.axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded' //配置post头部信息
5.axios.defaults.baseURL = 'http://localhost:8080/' //配置请求根路径
6.Vue.prototype.$http = axios //把axios对象挂到Vue原型上,其他页面再使用axios的时候,直接 this.$http 就可以了