Nodejs中模块的写法: (function(exports, require, module, __filename, __dirname) { // 模块的代码实际上在这里 function *** }); https://blog.csdn.net/qq_31967569/article/details/82461499