列出模組中所有functions
可用功能清單取得。
其實就是把模組當成一個物件(Object),列出其中的key。
var myExports = require('./exported-file.js');
console.log(Object.keys(myExports));
Last updated
Was this helpful?
可用功能清單取得。
其實就是把模組當成一個物件(Object),列出其中的key。
var myExports = require('./exported-file.js');
console.log(Object.keys(myExports));
Last updated
Was this helpful?