const currentPage = dv.current().file; const dailyPages = dv.pages('"0-Daily"').sort(k=>k.file.name, "asc"); const currentPageName = currentPage.name; const index = dailyPages.findIndex((e) => {return e.file.name === currentPageName}); if (index < 1) { dv.table(["File", "Created", "Size"],[]); } else { const lastIndex = index - 1; const lastPage = dailyPages[lastIndex].file; const allPages = dv.pages().values; const searchPages = []; const lastTime = dv.parse(lastPage.name); const currentTime = dv.parse(currentPage.name); for (let page of allPages) { const pageFile = page.file; if (pageFile.cday > lastTime && pageFile.cday <= currentTime) { searchPages.push(pageFile); } } dv.table(["File", "Created", "Size"], searchPages.sort((a, b) => a.ctime > b.ctime ? 1 : -1).map(b => [b.link, b.ctime, b.size])); } ll 显示的字节大小 ll 显示的是字节,可以使用-h参数来提高文件大小的可读性,另外 ll 不是命令,是 ls -l 的别名 ls -al 是以字节单位显示文件或者文件夹大小; 字节b,千字节kb, 1G=1024M=1024*1024KB=1024*1024*1024B 通常会加参数h来直观显示大小,会使用G、M等来显示大文件 ls -alh