一個獨立于瀏覽器的函數(shù),用于請求新的動畫幀。這用于創(chuàng)建應用程序的繪制循環(huán),如下面的示例所示。 Parameters: callback (requestAnimationFrame~Callback) 當應繪制下一幀時要調(diào)用的函數(shù)。 Example // Create a draw loop using requestAnimationFrame. The // tick callback function is called for every animation frame. function tick() { scene.render(); bmgl.requestAnimationFrame(tick); } tick(); See: The Web API Animation Frames interface