摘要: 在nodejs中,提供了exports 和 require 两个对象,其中 exports 是模块公开的接口,require 用于从外部获取一个模块的接口,即所获取模块的 exports 对象。而在exports抛出的接口中,如果你希望你的模块就想为一个特别的对象类型,请使用module.expor 阅读全文
posted @ 2015-12-23 16:27 Jone_chen 阅读(44798) 评论(1) 推荐(3) 编辑