提交 44a57626 编写于 作者: 雪洛's avatar 雪洛

docs: 修复示例代码错误

上级 e6df02cd
......@@ -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"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册