摘要: Nodejs模块系统1.如何创建一个模块创建一个js(hello.js)exports.world = function(){//为什么可以这么写,因为exports是nodejs公开的借口 console.log('hello nodejs');}使用:var hello = require('... 阅读全文
posted @ 2015-09-16 22:34 李亚杰 阅读(125) 评论(0) 推荐(0) 编辑