1.1.0 • Published 2 years ago
@definejs/node-api v1.1.0
API.js
node 中用于请求后台接口 API 的类。
let headers = {
'Content-Length': '288',
};
let api = new API('xxx');
api.on({
'end': function (json, { res, }) {
},
'error': function (err, { res, }) {
},
});
api.post(form, headers);