Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vxe-ajax

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vxe-ajax

vxe-ajax 基于Vue全局安装xe-ajax

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13
increased by30%
Maintainers
1
Weekly downloads
 
Created
Source

vxe-ajax 基于Vue全局安装xe-ajax

通过NPM安装最新版本

npm install vxe-ajax --save

通过 Vue.use() 来全局安装

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

Vue.use(VXEAjax)

// 在Vue实例中使用
this.$ajax.getJSON ('url', {id: 1}).then(data => {
  data
}).catch(data => {
  data
})

支持自定义扩展

import Vue from 'vue'
import VXEAjax from 'vxe-ajax'
import customs from './customs' // ./customs.js export function custom1 () {} 

Vue.use(VXEAjax, customs)

// 调用自定义扩展函数
this.$ajax.custom1()

License

Copyright (c) 2017-present, Xu Liangzhan

Keywords

FAQs

Package last updated on 02 Jan 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc