From 78e757b214048f0bb9ee82d18d3cfaf65f658bbf Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Tue, 6 Apr 2021 10:28:48 +0900 Subject: 例のidを修正 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/api/domtokenlist/foreach/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/ja/web') diff --git a/files/ja/web/api/domtokenlist/foreach/index.html b/files/ja/web/api/domtokenlist/foreach/index.html index 02c8c7701f..b1801d1a88 100644 --- a/files/ja/web/api/domtokenlist/foreach/index.html +++ b/files/ja/web/api/domtokenlist/foreach/index.html @@ -43,7 +43,7 @@ translation_of: Web/API/DOMTokenList/forEach

{{jsxref('undefined')}}.

-

+

次の例では、 {{htmlelement("span")}} 要素に設定されたクラスのリストを DOMTokenList として受け取るのに {{domxref("Element.classList")}} を使用しています。 forEach() を使用して値を含む反復子を取得し、それぞれの値を <span> の {{domxref("Node.textContent")}} に forEach() の中の関数から書き込みます。

-- cgit v1.2.3-54-g00ecf