摘要: CommonJS node.js 就是用 CommonJs规范 来管理 模块的 实际使用时(node.js 不支持es6的import语法) 使用 require 来导入你需要使用到的模块. 使用 exports.xxx (普通暴露,可以暴露多个)或者 moudle.exports(默认暴露,只能向 阅读全文
posted @ 2020-04-21 11:15 我爱小番茄 阅读(230) 评论(0) 推荐(0) 编辑
2 3
4