https://github.com/x-extends/vxe-ajax
🍃 用于 Vue 全局安装 xe-ajax
https://github.com/x-extends/vxe-ajax
xe-ajax
Last synced: about 2 months ago
JSON representation
🍃 用于 Vue 全局安装 xe-ajax
- Host: GitHub
- URL: https://github.com/x-extends/vxe-ajax
- Owner: x-extends
- License: mit
- Created: 2017-12-26T15:59:46.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-11-14T13:07:04.000Z (over 3 years ago)
- Last Synced: 2025-03-26T11:11:10.341Z (3 months ago)
- Topics: xe-ajax
- Language: JavaScript
- Homepage:
- Size: 65.4 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vxe-ajax
[](https://gitee.com/x-extends/vxe-ajax/stargazers)
[](https://www.npmjs.com/package/vxe-ajax)
[](https://travis-ci.com/x-extends/vxe-ajax)
[](http://npm-stat.com/charts.html?package=vxe-ajax)
[](https://unpkg.com/vxe-ajax/dist/vxe-ajax.umd.min.js)
[](LICENSE)用于 Vue 全局安装 xe-ajax
## Installing
```shell
npm install xe-ajax vxe-ajax
``````javascript
```
## Example
```javascript
import Vue from 'vue'
import XEAjax from 'xe-ajax'
import VXEAjax from 'vxe-ajax'Vue.use(VXEAjax, XEAjax)
``````html
- {{ item.name }}
```
```html
export default {
data () {
return {
list: []
}
},
created () {
this.$ajax.get('/api/user/list').then(data => {
this.list = data
})
}
}
```
## License
[MIT](LICENSE) © 2017-present, Xu Liangzhan