From 44a5762626694049db70793134c008c5509fb5f9 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 17 Apr 2024 17:15:24 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E4=BF=AE=E5=A4=8D=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=E4=BB=A3=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/uts/data-type.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/uts/data-type.md b/docs/uts/data-type.md index 2dc908f8..40254da1 100644 --- a/docs/uts/data-type.md +++ b/docs/uts/data-type.md @@ -1750,7 +1750,7 @@ uts 为自定义 type 类型提供了迭代器,可以使用 for-in 遍历出 t ```ts let person : PersonType = { id: 1, name: "zhangsan", age: 18 } -for (key in person) { +for (let key in person) { console.log(key) // 输出 "id", "name", "age" } -- GitLab