会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
鹦哥
导航
博客园
首页
新随笔
联系
订阅
管理
公告
2016年8月9日
理解node模块的exports和module.exports
摘要: exports是module.exports的引用,即var exports = module.exports。在一个模块的开头,这两个值都指向同一个空对象:exports = module.exports={}。所以,exports只是后者的引用。这篇文章中,我们将通过三个例子,探究这两者的关系和
阅读全文
posted @ 2016-08-09 13:55 鹦哥
阅读(3605)
评论(0)
推荐(0)
编辑