当我尝试显示功能时,我只会得到 [Function] :
> var a = function(){ return 'toto'; }
undefined
> a
[Function]
> require('util').inspect(a)
'[Function]'
当我尝试显示功能时,我只会得到 [Function] :
> var a = function(){ return 'toto'; }
undefined
> a
[Function]
> require('util').inspect(a)
'[Function]'