Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Dec 1, 2023. It is now read-only.
/vue-resourcePublic archive

The HTTP client for Vue.js

License

NotificationsYou must be signed in to change notification settings

pagekit/vue-resource

Repository files navigation

The plugin forVue.js provides services for making web requests and handle responses using aXMLHttpRequest or JSONP.

Features

  • Supports thePromise API andURI Templates
  • Supportsinterceptors for request and response
  • Supports latest Firefox, Chrome, Safari, Opera and IE9+
  • Supports Vue 1.0 & Vue 2.0
  • Compact size 14KB (5.3KB gzipped)

Installation

You can install it viayarn orNPM.

$ yarn add vue-resource$ npm install vue-resource

CDN

Available onjsdelivr,unpkg orcdnjs.

<scriptsrc="https://cdn.jsdelivr.net/npm/vue-resource@1.5.3"></script>

Example

{// GET /someUrlthis.$http.get('/someUrl').then(response=>{// get body datathis.someData=response.body;},response=>{// error callback});}

Documentation

Changelog

Details changes for each release are documented in therelease notes.

Contribution

If you find a bug or want to contribute to the code or documentation, you can help by submitting anissue or apull request.

License

MIT


[8]ページ先頭

©2009-2025 Movatter.jp