理解Nodejs 的模塊化思想 例子

在學習教程:nodejs教程 的時候, 遇到了怎麼輸出模塊接口的問題,也就是怎麼理解exports的用法. javascript hello.js文件裏面的定義你們是同樣的:html function Hello(){ var name; this.setName = function(thisName){ name = thisName; } this.sayName = funct
相關文章
相關標籤/搜索