diff --git a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md index fa14e6490a7befdf21316d17c6c55fd55ba34120..e2ed82106b61b3b8440a211e856c2a0377614325 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-arraylist.md +++ b/zh-cn/application-dev/reference/apis/js-apis-arraylist.md @@ -799,12 +799,12 @@ arrayList.add(4); // 使用方法一: let numbers: Array = arrayList.convertToArray() for (let item of numbers) { - console.log(`hyq value : ${item}`); + console.log(`value : ${item}`); } // 使用方法二: let iter = arrayList[Symbol.iterator](); -let temp = iter.next(); +let temp: IteratorResult = iter.next().value; while(!temp.done) { console.log(`value:${temp.value}`); temp = iter.next();