2016-07-27 8 views
0

サーバに[Function]と表示されている関数定義を見つける方法を探しました。関数を括弧で括る方法

は:

Meteor.publish gives [Function] 
on Meteor shell , but how to get the detailed description of function` 

`

+0

を使用することができますように思えますが一つの印刷機能を言わない方法を求めていますか?もしそうなら、 'console.log( 'func:'、myFunction.toString());'のように 'functionName.toString()'を単に呼び出すことができると思います。 – CodeChimp

+0

ありがとうございました:) –

答えて

0

@codechimpが言ったように、我々はFunction.toString()