requestAnimationFrame 兼容实现