📌 1. requestAnimationFrame 执行时机:✅ 执行在“渲染前”准确地说:它是在浏览器准备执行下一次渲染(repaint)之前执行的,也就是在 “渲染前的最后一个时刻”。
🔄 一帧的流程大概是:
上一帧结束 →
执行
2025-01-11