uniapp组件

nodejs怎么删文件夹

nodejs删文件夹的方法:1、创建一个js示例文件;2、引入fs模块;3、通过“function deleteall(path) {...}”方法删除文件夹即可。本文操作环境:Windows7系统、nodejs10.16.2版、DELL