nodejs-API文档

导入

  1. let a = require('文件名');

导出

  1. let a = 10;
  2. exports.a = a;

完整写法

  1. let b = 20;
  2. module.exports.b = b;