输出

示例代码

This is a demo for Video and Animation content and window.requestAnimationFrame

window.requestAnimFrame = (function(){
     return window.requestAnimationFrame ||
     window.webkitRequestAnimationFrame ||
     window.mozRequestAnimationFrame ||
     window.oRequestAnimationFrame ||
     window.msRequestAnimationFrame
})();

// example code from mr doob : http://mrdoob.com/lab/javascript/requestanimationframe/