stackoverflow 地址. 概要. Node.js 中, __dirname 总是指向被执行js 文件的绝对路径,所以当你在 /d1/d2/myscript.js 文件中写了 __dirname , 它的 ...
確定! 回上一頁