1.0.7 • Published 7 years ago
ljcajax v1.0.7
##install
npm install ljcajax
##usage
var ajax = require('ljcajax')
ajax(method, url, data, flag, (data) => {})
##overview
- ajax (method, url, data, flag, func). this function can only handle simple request include GET and post.and data should be an obj,flag is decide whether use the async,and the last function is the callback when the request success