获取工作目录

文件操作 / 基本操作

//__filename 是当前模块的文件名;
//__dirname 是当前模块的目录名
console.log(__filename);
console.log(__dirname);