如题
The module that first required this one.
index.js > a.js > b.js > c.js,index包含a, a包含b,依次类推,上图看结果:(module.parent 表示直接父级)
index.js > a.js > b.js > c.js
谁第一个require他 parent就是谁
CNode 社区为国内最专业的 Node.js 开源技术社区,致力于 Node.js 的技术研究。
The module that first required this one.
index.js > a.js > b.js > c.js,index包含a, a包含b,依次类推,上图看结果:(module.parent 表示直接父级)谁第一个require他 parent就是谁