node.js - nodejs express module.exports问题
怪我咯
怪我咯 2017-04-17 15:39:12
0
1
303

我知道模块化可以这么写:

module.exports = {
    a: function(){
        console.log("这是a");
    },
    b: function(){
        console.log("这是b");
    }
}

请问可以这么写吗?

module.exports = function(){
    console.log("这是模块");
}
怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
大家讲道理

....Can't you just try it yourself? There is an object everywhere above and a function everywhere below. . . Any questions? practice. . Out of true knowledge. . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template