没有这样的事。浏览器应该负责执行适当的同步,您可以通过使用来帮助它requestAnimationFrame()
- 例如,参见http://paulirish.com/2011/requestanimationframe-for-smart-animating/ http://paulirish.com/2011/requestanimationframe-for-smart-animating/ and https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)