摘要: 1、module.exports module变量代表当前模块。这个变量是一个对象,module对象会创建一个叫exports的属性,这个属性的默认值是一个空的对象: 例子:app.js require方法用于加载模块。 2、exports 与 module.exports的关系 Node为每个模块 阅读全文
posted @ 2018-03-07 13:18 heyushuo 阅读(19650) 评论(3) 推荐(7) 编辑