ajax-manager
Advanced tools
Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "ajax-manager", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "An jQuery ajax management tool", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,2 +5,3 @@ # ajax-manager | ||
# install | ||
``` | ||
@@ -10,3 +11,6 @@ npm install ajax-manager | ||
# useage | ||
# Usage | ||
You can import ajax-manager in both AMD/CMD and CommonJS way. | ||
```javascript | ||
@@ -18,2 +22,14 @@ import ajaxManager from 'ajax-manager' | ||
Or you can just link ajax-manager with a script tag (**not recommanded**): | ||
```html | ||
<script src="../ajax-maanager/dist/ajax-manager.js"></script> | ||
``` | ||
In this way, an Object called `ajaxManager` have been insert into global(`window`), you should call it like below: | ||
```javascript | ||
ajaxManager.default(models, globalConfig, jQuery) | ||
``` | ||
# API | ||
@@ -156,3 +172,3 @@ | ||
Use `__apiRoot` field to indicate the backend api root, it will concat in front of the `url`. GlobalConfig, modelConfig and apiCallingConfig are all accept this field. | ||
Use `__apiRoot` field to indicate the backend api root, it will concat in front of the `url`. GlobalConfig, modelConfig and apiCallingConfig all accept this field. | ||
@@ -159,0 +175,0 @@ ```javascript |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19896
228