检测一组选择器的匹配状态(纯函数)
选择器配置对象
检测选项
所有选择器的检测结果数组
const results = debugSelectors({ toolbar: '.bar-top', table: '.art-table', custom: (root) => root.querySelector('[data-role="panel"]')})// results: [{ name: 'toolbar', matched: true, count: 1, ... }, ...] Copy
const results = debugSelectors({ toolbar: '.bar-top', table: '.art-table', custom: (root) => root.querySelector('[data-role="panel"]')})// results: [{ name: 'toolbar', matched: true, count: 1, ... }, ...]
检测一组选择器的匹配状态(纯函数)