__dirname是node.js中的一个全局变量,它可以获得当前文件所在目录从盘符开始的全路径, console.log(__dirname) H:\Code\03high\03socketIO\groupChat0