由于它用于require加载package.json,因此无论当前工作目录如何,它都可以工作。 var pjson = require('./package.json'); console.log(pjson.version); @Pathogen提供 ...
確定! 回上一頁