介绍

path是node.js 提供的一套解决文件路径的模块

path.pathname() path.resolve() 等函数;

其中resolve是解析文件路径的函数,相当于cd命令;从右到左逐层的解析;