Compare commits

...

2 Commits

Author SHA1 Message Date
Ambrose
aaa540072f
Merge b14c54ce14 into 10c2db509d 2024-08-20 11:04:01 +08:00
Rongkang Xiong
b14c54ce14 fix: 迭代器对象myObj1 2024-01-20 12:56:14 +08:00

View File

@ -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());