解决了,调用fileio.opendirSync会得到类似游标的结果,每次调用dir.readSync就得到一条记录
let dir = fileio.opendirSync(dir1);
let dirent = dir.readSync();
let dirent2 = dir.readSync();
let dirent3 = dir.readSync();
解决了,调用fileio.opendirSync会得到类似游标的结果,每次调用dir.readSync就得到一条记录
let dir = fileio.opendirSync(dir1);
let dirent = dir.readSync();
let dirent2 = dir.readSync();
let dirent3 = dir.readSync();
举报