回调函数包含一个参数exists,true则文件存在,否则是false。 语法:. 复制代码 代码如下: fs.exists(path, callback). 由于该方法属于fs模块,使用前 ...
確定! 回上一頁