Score
0
Watch 7 Star 12 Fork 0

大猩猩X / vxe-ajaxJavaScriptMIT

Join us
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
用于 Vue 全局安装 xe-ajax spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

vxe-ajax

gitee star npm version npm build npm downloads gzip size: JS npm license

用于 Vue 全局安装 xe-ajax

Installing

npm install xe-ajax vxe-ajax

Get on unpkg and cdnjs

<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/xe-ajax"></script>
<script src="https://cdn.jsdelivr.net/npm/vxe-ajax"></script>

Example

import Vue from 'vue'
import XEAjax from 'xe-ajax'
import VXEAjax from 'vxe-ajax'

Vue.use(VXEAjax, XEAjax)
<template>
  <ul>
    <li v-for="item in list" :key="item.id">{{ item.name }}</li>
  </ul>
</template>
<script>
export default {
  data () {
    return {
      list: []
    }
  },
  created () {
    this.$ajax.getJSON('/api/user/list').then(list => {
       this.list = data
    })
  }
}
</script>

License

MIT License, 2017-present, Xu Liangzhan

Comments ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/xuliangzhan_admin/vxe-ajax.git
git@gitee.com:xuliangzhan_admin/vxe-ajax.git
xuliangzhan_admin
vxe-ajax
vxe-ajax
master

Help Search