web-spider
Version:
web-spider is a simple and fast web spider written with Nodejs!
18 lines (17 loc) • 327 B
JavaScript
/**
* Created by yuexing on 2016/06/03.
* 定义各类传参的基本类型
*/
;
class JsonData {
constructor(code, msg, data) {
this.code = code || 2000;
this.msg = msg || "";
this.data = data || {};
}
toString() {
return JSON.stringify(this);
}
}
//exports = JsonData;
module.exports = JsonData;