path.resolve(__dirname, 'folderName'); ... dir: '/foo/bar/baz/asdf', ... 與 process.cwd() 一樣,使用require 時候,與 __dirname 一樣.
確定! 回上一頁