process.cwd() & path.resolve('.')
一个有趣的问题
// ...
console.log('path.resolve', path.resolve('.'));
console.log('process.cwd', process.cwd());
// ... node /desktop/node/test1.jspath.resolve /desktop/other
process.cwd /desktop/other最后更新于
一个有趣的问题
// ...
console.log('path.resolve', path.resolve('.'));
console.log('process.cwd', process.cwd());
// ... node /desktop/node/test1.jspath.resolve /desktop/other
process.cwd /desktop/other最后更新于