Smaller than smaller.
无他,就是小
h5ajax.get('http://localhost/user/info', function(err, json) {
console.log(JSON.stringify(json));
// > {"status":200,"data":{"user_id":30001,"name":"zswang"}}
// * done
});
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
});
MIT © zswang