2.0官方不是推荐用axios了吗,vue-resource已经不再维护了啊

来源:6-4 使用 axios 发送数据请求

月光皎洁

2017-03-26

如题,

写回答

3回答

fishenal

2017-03-26

我不知道官方推荐axios是哪里的来的消息,至少github上vue官方合集对 发送http请求这块,推荐的是这样几个:

vue-resource - The HTTP client for Vue.js.

vue-async-computed - Async computed properties for Vue.js.

vue-jsonp - A tiny library for handling JSONP request.

v-model - V-Model is a model plugin for Vue.js, like ng-resource.

vue-resource-mock

vue-resource我并没有带过。。。后面都是用的vue-resource, 我觉得你可能是把这个跟json server搞混了。


jsonserver这里我只是想用来做桩数据的服务器,他是提供数据的模拟restful应用的。

vue-resource是引入到项目里,用来发送http ajax请求的,类似以前jquery的 $post什么的。




3
1
月光皎洁
好的,可能是我误会了。非想感谢您的辛苦付出。继续学习中
2017-03-28
共1条回复

天道6

2017-04-13

这老师菜的一逼

4
0

月光皎洁

提问者

2017-03-26

我搞错了,只是带过了讲了一下,后面讲了另一种json-server

0
0

最容易上手的Vue2.0入门实战教程

快速入门Vue2.0,组件化开发一个数字产品电商平台

3966 学习 · 999 问题

查看课程