towavephone / GatsbyBlog

技术博客,记录日常技术攻关、读书笔记 https://blog.towavephone.com
https://blog.towavephone.com
MIT License
4 stars 2 forks source link

Node.js入门学习 #97

Open towavephone opened 4 years ago

towavephone commented 4 years ago

/nodejs-introduce-learn/基础 模块 require require函数用于在当前模块中加载和使用别的模块,传入一个模块名,返回一个模块导出对象。模块名可使用相对路径(以./开头),或者是绝对路径(以/或C:之类的盘符开头)。另外,模块名中的.js…