增加requestAnimationFrame与cancelAnimationFrame兼容