无需多言,不明白这两者区别的大多没看官方解释,只有一句话 If you want the root of your module’s export to be a function (such as a constructor) or if you want to export a complete object in one assignment instead of building it one property at a time, assign it to module.exports instead of exports.
大家明白了吧