我在Node.js模块中找到了以下合同:
module.exports = exports = nano = function database_module(cfg) {...}
我不知道什么之间的不同module.exports和exports为什么都被用在这里.
module.exports
exports
javascript commonjs node.js
commonjs ×1
javascript ×1
node.js ×1