1. 一个模块就是一个文件。
2. exports: 模块向外公开的接口;require:从外部获取一个模块的接口,实际是获取模块的exports对象。
3. 创建模块:
(1)exports.hello = Hello;
var hello = require('ttt').hello;
hello_obj = new hello();
(2)module.exports = Hello;
var hello = require('ttt');
var hello_obj = new hello();