module.exports和exports

源码如下:exports是最终还是通过module.exports将文件模块的方法和属性暴露给require返回的对象进行调用

可以简单理解为exports是在给module.exports添加属性和方法

All rights reserved please indicate the source if reprint---吓尿了的大肥鼠
原文地址:https://www.cnblogs.com/realsoul/p/5644340.html