require写法抽取顺序及fs模块

301 阅读1分钟
  1. require('xxx') 直接在node_modules下查找第三方或者内置模块
  2. requre('./ ../ /') 这种就是查找自己写好的路径