我对 window.requestAnimFrame 有疑问。它在 FF、Chrome 和 IE9、Opera 中以不同的方式工作。例如这个http://jsfiddle.net/vZP3u/2/(来自另一个关于 requestAnimFrame 的问题)。它在 FF 9.0.1 和 Chrome 16.0.912.77 m 中显示大约 60 fps(我猜应该是 30)。但它在 IE9 和 Opera 中运行良好。你知道如何解决这个问题吗?
1498 次
1 回答
0
Opera 和 IE 还不支持requestAnimationFrame
。因此,您的代码以 33 毫秒setTimeout
后备运行。
更多主题:
http://paulirish.com/2011/requestanimationframe-for-smart-animating/
http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
https://developer.mozilla.org/en/DOM/window.requestAnimationFrame
于 2012-01-31T12:04:57.663 回答