Node 杂技

1.关于require

当文件夹a中含有index.js时,在b.js中如果有require("文件夹a的路径"),则将会自动执行index.js的语句

原文地址:https://www.cnblogs.com/heben/p/8886734.html