requestAnmationFrame也是隔一段时间调用一次。只不过它的时间间隔是浏览器最佳刷新时间,不太短,不太长。
参考:https://blog.csdn.net/weixin_44730897/article/details/116532510
requestAnmationFrame也是隔一段时间调用一次。只不过它的时间间隔是浏览器最佳刷新时间,不太短,不太长。
参考:https://blog.csdn.net/weixin_44730897/article/details/116532510