Node.js 提供了exports 和require 两个对象,其中exports 是模块公开的接口,require ... 就行,要暴露对象(类似class,包含了很多属性和方法),就用module.exports。
確定! 回上一頁