module 对象
¥The module
object
在每个模块中,module
自由变量是对代表当前模块的对象的引用。为方便起见,module.exports
也可通过 exports
模块全局访问。module
实际上不是全局的,而是每个模块本地的。
¥In each module, the module
free variable is a reference to the object
representing the current module. For convenience, module.exports
is
also accessible via the exports
module-global. module
is not actually
a global but rather local to each module.