From e4cf3f5e0b02d35d3ee71a034b4b51063a4f5fc9 Mon Sep 17 00:00:00 2001 From: Sepush Date: Tue, 7 Sep 2021 11:13:01 +0800 Subject: Fix typo in Web/JavaScript/Reference/Global_Objects/Function/apply, zh-CN (#2371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix typo `便历` should be `遍历` --- .../web/javascript/reference/global_objects/function/apply/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/zh-cn/web/javascript/reference/global_objects') diff --git a/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html b/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html index 3e87c9ded3..0bf0414cf8 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/function/apply/index.html @@ -66,7 +66,7 @@ console.info(array); // ["a", "b", 0, 1, 2]

使用apply和内置函数

-

对于一些需要写循环以便历数组各项的需求,我们可以用apply完成以避免循环。

+

对于一些需要写循环以遍历数组各项的需求,我们可以用apply完成以避免循环。

下面是示例,我们将用Math.max/Math.min求得数组中的最大/小值。

-- cgit v1.2.3-54-g00ecf