ajax-util
v1.0.1
Published
ajax util
Downloads
2
Readme
Installation
npm i --save ajax-util
Example
import ajaxUtil from 'ajax-util';
ajaxUtil.get({
url: 'package.json',
success: (result) => {
console.log(result);
}
});
Parameters
url @String
params @Object
success @Function
error @Function
before @Function
after @Function
headers @Object
sync @Boolean
timeout @Number
responseType @String