From 071c91a3414ae954fda117cf21e22508bcdfb69e Mon Sep 17 00:00:00 2001 From: coollixin Date: Fri, 1 Sep 2023 15:31:10 +0800 Subject: [PATCH] =?UTF-8?q?fixed=204ebb1c5=20from=20https://gitee.com/cool?= =?UTF-8?q?lixin/docs/pulls/23679=20arkTs=20arraylist=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: coollixin --- zh-cn/application-dev/reference/apis/js-apis-arraylist.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 fa14e6490a..e2ed82106b 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(); -- GitLab