模块Path: path.normalize(url) path.join(url1, url2, ..) path.resolve(url1, url2, ..) path.relative(url1, url2) path.dirname(url) path.basename(url) path.extname(url) TIPS: 以上是Path对象的API,调用方便简洁,一般在项目中我会先写一个顶级目录 var publicDir = path.resolve(__dirname, '.…