摘要: 可以通过 exports 或者 module.exports 对外暴露对象,但如果同时操作了它们,在 require() 一个模块时,得到的永远是其 module.exports 指向的对象 不建议将 exports 与 module.exports 混合使用 举个栗子,node-test.js 文 阅读全文
posted @ 2025-08-07 19:39 鹿鹿脖子长 阅读(26) 评论(0) 推荐(0)