nodejs:pathname

__dirname:当前的程序路径名
path.join(,):将两个字符串结合在一起
path.basename():取路径的文件名
原文地址:https://www.cnblogs.com/2008nmj/p/15439591.html