∑Dataview dv.header(2,"文章统计"); let path="3.Cards/Sh成长系统/2.知识管理系统/Obsidian/Dataview"; let pages = dv.pages(`"${path}"`); //.length统计数量 //数量统计 let i = [pages.length, pages.filter(a => a.status == "Todo").length, pages.filter(a => a.status == "Done").length, pages.file.etags.distinct().length] dv.paragraph(`共有 **${i[0]}** 篇相关笔记,Todo**${i[1]}** 篇,Done**${i[2]}** 篇,标签 **${i[3]}** 个`) // 所有的标签 dv.paragraph(pages.file.tags.distinct() .map(t => {return `[${t}](${t})`}) .array().sort().join(" | ")); - Canvas-Dataview - Dataview完整查询语法 - Dataview来源 - Dataview参考示例 - DataviewJS基础知识 table file.folder,status,tags,created from -"5.Sources" where contains(file.name,"Dataview")