diff options
author | Irvin <irvinfly@gmail.com> | 2022-02-16 02:13:18 +0800 |
---|---|---|
committer | Irvin <irvinfly@gmail.com> | 2022-02-16 02:35:54 +0800 |
commit | 8ccfa93045a6c119303566370999f59a0aae3b25 (patch) | |
tree | 972a4f66cb40a7c722bc20490b0f9b6ceb574e77 /files/zh-cn/web/javascript/reference/global_objects/array/foreach | |
parent | 3bb96c83e22a7a6214e79e9b903ee1c7b5657e67 (diff) | |
download | translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.gz translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.tar.bz2 translated-content-8ccfa93045a6c119303566370999f59a0aae3b25.zip |
adjust dl/dt/dd tags for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/global_objects/array/foreach')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html index 020a7dc3cd..6f93bd4513 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/array/foreach/index.html @@ -26,16 +26,15 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Array/forEach <dl> <dt><code><var>callback</var></code></dt> - <dd>为数组中每个元素执行的函数,该函数接收一至三个参数:</dd> - <dd> - <dl> - <dt><code><var>currentValue</var></code></dt> - <dd>数组中正在处理的当前元素。</dd> - <dt><code><var>index</var></code> {{optional_inline}}</dt> - <dd>数组中正在处理的当前元素的索引。</dd> - <dt><code><var>array</var></code> {{optional_inline}}</dt> - <dd><code>forEach()</code> 方法正在操作的数组。</dd> - </dl> + <dd>为数组中每个元素执行的函数,该函数接收一至三个参数: + <dl> + <dt><code><var>currentValue</var></code></dt> + <dd>数组中正在处理的当前元素。</dd> + <dt><code><var>index</var></code> {{optional_inline}}</dt> + <dd>数组中正在处理的当前元素的索引。</dd> + <dt><code><var>array</var></code> {{optional_inline}}</dt> + <dd><code>forEach()</code> 方法正在操作的数组。</dd> + </dl> </dd> <dt><code><var>thisArg</var></code> {{optional_inline}}</dt> <dd>可选参数。当执行回调函数 <code><var>callback</var></code> 时,用作 <code>this</code> 的值。</dd> |