mirror of
https://github.com/qianguyihao/Web.git
synced 2024-11-01 05:24:45 +08:00
Merge b14c54ce14
into 81fd5e43fc
This commit is contained in:
commit
4c9317cd9b
@ -334,7 +334,7 @@ const myObj1 = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// 获取 myObj1 的迭代器对象
|
// 获取 myObj1 的迭代器对象
|
||||||
const strArrIterator = myObj2[Symbol.iterator]();
|
const strArrIterator = myObj1[Symbol.iterator]();
|
||||||
// 通过迭代器遍历 myObj1.strArr 的数据
|
// 通过迭代器遍历 myObj1.strArr 的数据
|
||||||
console.log(strArrIterator.next());
|
console.log(strArrIterator.next());
|
||||||
console.log(strArrIterator.next());
|
console.log(strArrIterator.next());
|
||||||
|
Loading…
Reference in New Issue
Block a user