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/set | |
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/set')
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html | 3 | ||||
-rw-r--r-- | files/zh-cn/web/javascript/reference/global_objects/set/set/index.html | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html index 6f08ab121b..bfef87e0bd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/foreach/index.html @@ -15,8 +15,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/forEach <dl> <dt><code>callback</code></dt> - <dd>为集合中每个元素执行的回调函数,该函数接收三个参数:</dd> - <dd> + <dd>为集合中每个元素执行的回调函数,该函数接收三个参数: <dl> <dt><strong><code>currentValue</code>, </strong><strong><code>currentKey{{optional_inline}}</code></strong></dt> <dd><strong>currentValue</strong> 是正在被操作的元素。并且由于集合没有索引,所以 <strong>currentKey</strong> 也表示这个正在被操作的元素。</dd> diff --git a/files/zh-cn/web/javascript/reference/global_objects/set/set/index.html b/files/zh-cn/web/javascript/reference/global_objects/set/set/index.html index 7a19f9526a..a8c2a723dd 100644 --- a/files/zh-cn/web/javascript/reference/global_objects/set/set/index.html +++ b/files/zh-cn/web/javascript/reference/global_objects/set/set/index.html @@ -24,8 +24,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/Set/Set <dl> <dt><em><code>iterable</code></em> {{optional_inline}}</dt> - <dd>如果传递一个<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of">可迭代对象</a>,它的所有元素将不重复地被添加到新的 <strong>Set</strong>中。</dd> - <dd>如果不指定此参数或其值为<code>null</code>,则新的 <strong>Set</strong>为空。</dd> + <dd>如果传递一个<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of">可迭代对象</a>,它的所有元素将不重复地被添加到新的 <strong>Set</strong>中。如果不指定此参数或其值为<code>null</code>,则新的 <strong>Set</strong>为空。</dd> </dl> <h3 id="Return_value">Return value</h3> |