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 - npm Package Compare versions

Comparing version 1.0.9 to 1.0.10

2

package.json
{
"name": "vxe-ajax",
"version": "1.0.9",
"version": "1.0.10",
"description": "vxe-ajax 用于Vue全局安装xe-ajax",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -17,25 +17,12 @@ # vxe-ajax 用于Vue全局安装xe-ajax

// 在Vue实例中使用
this.$ajax.getJSON ('url', {id: 1}).then(data => {
data
// 通过vue实例的调用方式
this.$ajax.getJSON ('url', {id: 1})
.then(data => {
// data
}).catch(data => {
data
// data
})
```
### 支持自定义扩展
``` shell
import Vue from 'vue'
import XEAjax from 'xe-ajax'
import VXEAjax from 'vxe-ajax'
import customs from './customs' // ./customs.js export function custom1 () {}
XEAjax.mixin(customs)
Vue.use(VXEAjax, XEAjax)
// 调用自定义扩展函数
this.$ajax.custom1()
```
## License
Copyright (c) 2017-present, Xu Liangzhan
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