__dirname cwd() 的区别

来源:互联网 发布:马丁全单吉他知乎 编辑:程序博客网 时间:2024/05/24 01:06
cwd() 是当前执行node命令时候的文件夹地址 
__dirname 是被执行的js 文件的地址
0 0