__dirname. 獲取當前執行檔案所在目錄的完整目錄名,無論我們在哪裡執行(沒有npm link的情況下)cli.js,都會返回 $ User/leinov/porject/mynode/bin/ ...
確定! 回上一頁