node中的路徑問題__dirname,path.resolve,path.join

path.resolve 打印項目的絕對路徑 const path = require(‘path’); console.log(path.resolve(‘a’)); path.resolve 打印項目的絕對路徑 dirname 代表的是目錄。
相關文章
相關標籤/搜索