2014年12月19日
摘要: 引题 用过node的同学应该都知道require是用来加载模块的,那你是否存在如下的疑问呢?1. require(path)是如何依据path找到对应module呢?2. 为何在模块定义中,一定要通过module.exports暴漏出接口?module.exports与require存在什么关... 阅读全文
posted @ 2014-12-19 20:10 big-brother 阅读(3540) 评论(2) 推荐(1) 编辑