Nodejs 🔥API 索引路径处理index本页总览indexresolve 如果没有 path 传递任何段,path.resolve()将返回当前工作目录的绝对路径。 path.resolve("/foo/bar", "./baz");// Returns: '/foo/bar/baz' 参考链接 https://nodejs.org/docs/latest/api/path.html