鹦哥

导航

 

2016年8月9日

摘要: exports是module.exports的引用,即var exports = module.exports。在一个模块的开头,这两个值都指向同一个空对象:exports = module.exports={}。所以,exports只是后者的引用。这篇文章中,我们将通过三个例子,探究这两者的关系和 阅读全文
posted @ 2016-08-09 13:55 鹦哥 阅读(3605) 评论(0) 推荐(0) 编辑