node.js用的就是CommonJS的设计模式

aa.js module.exports=function(){ console.log("我在aa中的配置文件"); } bb.js testfun=require("./aa"); testfun() js在同一目录下,都在HelloWord1下
相关文章
相关标签/搜索