展示
输出结果是:
渲染?
代码
JS代码:
const observer = new PerformanceObserver(entryList => { for (const entry of entryList.getEntries()) { console.dir(entry); } }); observer.observe({ entryTypes: ['paint'] });
const observer = new PerformanceObserver(entryList => { for (const entry of entryList.getEntries()) { console.dir(entry); } }); observer.observe({ entryTypes: ['paint'] });