https://github.com/robeio/robe-ajax
Ajax library exported from jquery
https://github.com/robeio/robe-ajax
Last synced: about 1 year ago
JSON representation
Ajax library exported from jquery
- Host: GitHub
- URL: https://github.com/robeio/robe-ajax
- Owner: robeio
- License: mit
- Created: 2016-08-08T08:33:13.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-12-24T00:33:26.000Z (over 9 years ago)
- Last Synced: 2025-04-01T06:01:48.303Z (about 1 year ago)
- Language: JavaScript
- Size: 51.8 KB
- Stars: 5
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## robe-ajax
### Motivation
Ajax library exported from jquery
#### installitation
```ssh
npm install robe-ajax
```
#### usage
Javascript :
```javascript
var jajax = require("robe-ajax");
// call jajax.ajax like $.ajax
jajax.ajax(
url: "script.php",
method: "POST",
data: { id : menuId },
dataType: "html"
);
```
ES6 :
```javascript
import jajax from "robe-ajax";
// call jajax.ajax like $.ajax
jajax.ajax(
url: "script.php",
method: "POST",
data: { id : menuId },
dataType: "html"
);
```
More information : http://api.jquery.com/jquery.ajax/