提交 960a583d 编写于 作者: M Matt Zabriskie

Updating README

上级 cec3482f
...@@ -9,12 +9,12 @@ Performing a `GET` request ...@@ -9,12 +9,12 @@ Performing a `GET` request
```js ```js
// Make a request for a user with a given ID // Make a request for a user with a given ID
axios.get('/user?ID=12345') axios.get('/user?ID=12345')
.success(function (response) { .success(function (response) {
console.log(response); console.log(response);
}) })
.error(function (response) { .error(function (response) {
console.log(response); console.log(response);
}); });
// Optionally the request above could also be done as // Optionally the request above could also be done as
axios.get('/user', { axios.get('/user', {
...@@ -156,6 +156,10 @@ Using npm: ...@@ -156,6 +156,10 @@ Using npm:
$ npm install axios $ npm install axios
``` ```
## Compatability
Tested to work with >=IE8, Chrome, Firefox, Safari, and Opera.
## Attribution ## Attribution
axios is heavily inspired by Angular's $http service. axios is heavily inspired by Angular's $http service.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册