膨大 将内联调用转换为静态可解析的需求映射 该bulkify函数签名是兼容的转换API。 例子 var bulk = require ( 'bulk-require' ) ; var sections = bulk ( __dirname , [ 'data/**/*.js' , 'render/*.js' ] ) ; console . log ( sections ) ; 您可以直接在节点中运行此程序: $ node glob.js { data: { cats: { [Function] index: [Circular], meow: [Object] }, dogs: { [Function] index: [Circular], small: [Object], wolf: [Object] }, owners: { data: [Object