requestAnimationFrame

109 阅读1分钟

requestAnimationFrame 在重新渲染前执行回调函数
[或许可以理解为在一帧结束前调用?]
[或许可以理解为当前帧?]

并且不管理回调函数