aboutsummaryrefslogtreecommitdiff
path: root/files/zh-tw/web/javascript/reference/iteration_protocols/index.html
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:08 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commitf45e9e070c93ebbd83d488bdd775987a4d75c201 (patch)
treeaacef5edaf768a188cadc46860f5b6aaa74f39ef /files/zh-tw/web/javascript/reference/iteration_protocols/index.html
parent8ccfa93045a6c119303566370999f59a0aae3b25 (diff)
downloadtranslated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.tar.gz
translated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.tar.bz2
translated-content-f45e9e070c93ebbd83d488bdd775987a4d75c201.zip
fix yari h2m dry run errors
Diffstat (limited to 'files/zh-tw/web/javascript/reference/iteration_protocols/index.html')
-rw-r--r--files/zh-tw/web/javascript/reference/iteration_protocols/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-tw/web/javascript/reference/iteration_protocols/index.html b/files/zh-tw/web/javascript/reference/iteration_protocols/index.html
index 707da81524..8c360e0894 100644
--- a/files/zh-tw/web/javascript/reference/iteration_protocols/index.html
+++ b/files/zh-tw/web/javascript/reference/iteration_protocols/index.html
@@ -71,8 +71,8 @@ translation_of: Web/JavaScript/Reference/Iteration_protocols
</tbody>
</table>
-<div class="note">
-<p>我們無法反射性的一眼看出一個特定的物件是否實作了迭代器協議,然而要建立一個同時滿足迭代器及可迭代協議的物件卻是相當容易(如下例所示)。範例的做法允許一個迭代器被各個預期其可迭代行為的語法所消費。因此很少有需要實作迭代器協議而沒有實作可迭代協議的情況。</p>
+<div class="notecard note">
+<p><strong>備註:</strong>我們無法反射性的一眼看出一個特定的物件是否實作了迭代器協議,然而要建立一個同時滿足迭代器及可迭代協議的物件卻是相當容易(如下例所示)。範例的做法允許一個迭代器被各個預期其可迭代行為的語法所消費。因此很少有需要實作迭代器協議而沒有實作可迭代協議的情況。</p>
<pre class="brush: js">var myIterator = {
  next: function() {