Skip to content

去掉 vue-resource #186

@yyx990803

Description

@yyx990803

最近团队讨论了一下,Ajax 本身跟 Vue 并没有什么需要特别整合的地方,使用 fetch polyfill 或是 axios、superagent 等等都可以起到同等的效果,vue-resource 提供的价值和其维护成本相比并不划算,所以决定在不久以后取消对 vue-resource 的官方推荐。已有的用户可以继续使用,但以后不再把 vue-resource 作为官方的 ajax 方案。

这里可以去掉 vue-resource,文档也不必翻译了。

Activity

dingyiming

dingyiming commented on Oct 14, 2016

@dingyiming
Collaborator

@yyx990803 哦,好的,已经去除vue-resource,更新了网站

leyec

leyec commented on Oct 15, 2016

@leyec

刚刚习惯 vue-resource , this.$http 传递的this还是蛮方便的, 最后谢谢上次关于不能过滤空格的答复,最后看文档搞懂了.

Pentium286

Pentium286 commented on Oct 19, 2016

@Pentium286

以后项目里可以不引用 vue-resource 了吧?

Zenfeder

Zenfeder commented on Oct 20, 2016

@Zenfeder

干得漂亮!“请求超时处理”这一功能就让我无法忍受!

added a commit that references this issue on Dec 12, 2016
Zhang-O

Zhang-O commented on Apr 18, 2017

@Zhang-O

soga

FlowerBoot

FlowerBoot commented on Apr 28, 2017

@FlowerBoot

需要jsonp 的怎么办?

dingyiming

dingyiming commented on Apr 28, 2017

@dingyiming
Collaborator

@cocosmaker 并不影响

ZaleLoveP

ZaleLoveP commented on May 10, 2017

@ZaleLoveP

我刚刚学习vue,在git上下载了一个项目,可是里面http的jsonp方法都变为未定义了,导致项目运行不了,如何解决呢

haoyi2015

haoyi2015 commented on Apr 25, 2018

@haoyi2015

very good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yyx990803@Pentium286@Zenfeder@FlowerBoot@haoyi2015

        Issue actions

          去掉 vue-resource · Issue #186 · volksbright/document-standard-vue