在1个module.export中包含许多方法和模块中的每个函数的module.export之间是否有不同的效率?1 module.exports与module.exports为每个功能?
module.exports={
func1: function (req, res, next) {},
func2: function (req, res, next) {}
}
与
module.exports.func1 = function(){};
module.exports.funct2 = function(){};
我被告知,以调查是否有2个选项之间的差异。 比其他方式更好吗? 谢谢。