From 2f4fe3cded6f5e1c4995ac860a58d7befd2350fd Mon Sep 17 00:00:00 2001 From: hdx Date: Thu, 8 Aug 2024 18:39:12 +0800 Subject: [PATCH] =?UTF-8?q?AnimationFrame:=20=E8=B0=83=E6=95=B4=E6=96=87?= =?UTF-8?q?=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/animation-frame.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/animation-frame.md b/docs/api/animation-frame.md index 8a237055..ea24b495 100644 --- a/docs/api/animation-frame.md +++ b/docs/api/animation-frame.md @@ -27,5 +27,5 @@ **提示** -- requestanimationframe/cancelanimationframe 为全局 API,如果需要跨平台处理 canvas 动画应使用 [uni.createCanvasContextAsync]("./create-canvas-context-async.md") +- requestAnimationFrame/cancelAnimationFrame 为全局 API,如果需要跨平台处理 canvas 动画应使用 [uni.createCanvasContextAsync]("./create-canvas-context-async.md") - `Android uni-app x` requestAnimationframe 目前仅支持有参数callback,示例:`requestAnimationFrame((timestamp : number) => {})` -- GitLab