NodeJs 读取某目录下所有目录和文件名
代码如下: const path = require("path"); const fs = require("fs"); const pathName = "./";//要读取的文件夹路径,windows系统路径"\"要转义,如:"C:\\Users\\user\\Desktop" fs.rea ...


代码如下: const path = require("path"); const fs = require("fs"); const pathName = "./";//要读取的文件夹路径,windows系统路径"\"要转义,如:"C:\\Users\\user\\Desktop" fs.rea ...

