摘要: require 用来加载代码,而 exports 和 module.exports 则用来导出代码。但很多新手可能会迷惑于 exports 和 module.exports 的区别,为了更好的理解 exports 和 module.exports 的关系。 一开始我没有理解,原因是我没有明白node 阅读全文
posted @ 2017-05-26 09:48 游鱼与渔 阅读(249) 评论(1) 推荐(0) 编辑