module.children 什么时候会有值?
var a = require('./a');
var b = require('./b');
var fs = require('fs');
console.log(module.children);//[]
1 回复
exports.c = require('./c');
console.log(module.children); // output c
;)(;