0.0.5 • Published 7 years ago
h5ajax v0.0.5
h5ajax Ajax of Moblie
Smaller than smaller.
无他,就是小
使用方法
GET
h5ajax.get('http://localhost/user/info', function(err, json) {
console.log(JSON.stringify(json));
// > {"status":200,"data":{"user_id":30001,"name":"zswang"}}
// * done
});
POST
h5ajax.post('http://localhost/user/info', { "code": "2016" }, function(err, json) {
console.log(JSON.stringify(json));
// > {"status":200,"data":{"user_id":30001,"name":"zswang","code":"2016"}}
// * done
});
License
MIT © zswang