export与module.export的区别和用法
在 node 的 js 模块里可以直接调用 exports 和 module 两个“全局”变量module.exports.something = function(){};exports.something = function(){};// 上面两个方程是等价的module.exports = function (app) { requestHandler(app)
原创
2017-07-06 09:50:22 ·
1908 阅读 ·
0 评论