node.js的module.export 和 export方法的區別

原文:http://www.hacksparrow.com/node-js-exports-vs-module-exports.htmljavascript 你確定很是熟悉nodejs模塊中的exports對象,你能夠用它建立你的模塊。例如:(假設這是rocker.js文件)html exports.name = function() { console.log('My name is L
相關文章
相關標籤/搜索