Vue.js的HTTP客户端
#vue-resource [] (https://circleci.com/gh/pagekit/vue-resource) [ZZURL1Z] (ZZURL2Z) [ZZZURL3L3Z] [ZZZURL4Z] (英语).
[Vue.js] (http://vuejs.org) 的插件提供网络请求服务,并使用XMLHttp request或JSONP处理响应.
□ 特性
(原始内容存档于2019-09-29) (英语). ``` $ yarn add vue-resource $ npm install vue-resource
CDN 中文译名参考:
可在[jsdelivr](https://cdn.jsdelivr.net/npm/[email protected])、[unpkg](https://unpkg.com/[email protected])或[cdnjs](https://cdnjs.com/libraries/vue-resource)上查阅。
ZZ1ZZ
□ 实例
(原始内容存档于2019-09-29). ```js
{
// GET /someUrl
this.$http.get('/someUrl').then(response => {
// get body data
this.someData = response.body;
}, response => {
// error callback
});
}□ 文档
□ 变化日志
每项发行的详细变化见[发行注 (ZZURL14Z).
□ 贡献
如果您发现错误或想要为代码或文档出力,可以通过提交[出 (https://github.com/pagekit/vue-resource/issues)或 [Pull Request] (https://github.com/pagekit/vue-resource/pulls)来帮助.
□ 许可证
[MIT] (ZZURL17ZH)
如何在组件 API 中使用 vue-resource
我是否可以使用此套件来进行 SEO 优化任务?
有没有关于 Vue 3 支持的计划?
该字段已转换为未定义
HTTP 请求响应抛出 net::ERR_CONNECTION_CLOSED
正在尝试联系以处理安全问题
序列化数组对象必须是 PlainObject 吗?
在传递包含数组的参数时出现了意外的查询字符串
无法捕获 302 重定向
错误 firefox IPV6 VUE.JS vue-resource.common.js XMLHttpRequest