### requestAnimationFrame(callback)@requestanimationframe ### cancelAnimationFrame(taskId) @cancelanimationframe **提示** - requestAnimationFrame/cancelAnimationFrame 为全局 API,如果需要跨平台处理 canvas 动画应使用 [uni.createCanvasContextAsync]("./create-canvas-context-async.md") - `Android uni-app x` requestAnimationframe 目前仅支持有参数callback,示例:`requestAnimationFrame((timestamp : number) => {})`