From b14c54ce14cee09c3bfd152f44ccf590d33a6eca Mon Sep 17 00:00:00 2001 From: Rongkang Xiong Date: Sat, 20 Jan 2024 12:56:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=BF=AD=E4=BB=A3=E5=99=A8=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1myObj1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07-JavaScript进阶/03-迭代器和生成器.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/07-JavaScript进阶/03-迭代器和生成器.md b/07-JavaScript进阶/03-迭代器和生成器.md index 0959af0..df3fb1a 100644 --- a/07-JavaScript进阶/03-迭代器和生成器.md +++ b/07-JavaScript进阶/03-迭代器和生成器.md @@ -334,7 +334,7 @@ const myObj1 = { }; // 获取 myObj1 的迭代器对象 -const strArrIterator = myObj2[Symbol.iterator](); +const strArrIterator = myObj1[Symbol.iterator](); // 通过迭代器遍历 myObj1.strArr 的数据 console.log(strArrIterator.next()); console.log(strArrIterator.next());