aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/cssunparsedvalue/foreach/index.html
blob: 547a5b9b1f667a31966c8b2886338fccad5b73d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
---
title: CSSUnparsedValue.forEach()
slug: Web/API/CSSUnparsedValue/forEach
tags:
  - API
  - CSS Typed Object Model API
  - CSSUnparsedValue
  - Constructor
  - Experimental
  - Method
  - NeedsExample
  - Reference
  - forEach
  - forEach()
translation_of: Web/API/CSSUnparsedValue/forEach
---
<div>{{draft}}{{APIRef("CSSOM")}}{{SeeCompatTable}}</div>

<p class="summary"><strong><code>CSSUnparsedValue.forEach()</code></strong> メソッドは、指定された関数を、 {{domxref('CSSUnparsedValue')}} オブジェクトのそれぞれの要素に対して実行します。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox"><var>CSSUnparsedValue</var>.forEach(function <var>callback(currentValue[, index[, array]]) {
    // your iterator
}</var>[, <var>thisArg</var>]);</pre>

<h3 id="Parameters" name="Parameters">引数</h3>

<dl>
 <dt><code>callback</code></dt>
 <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> が呼び出されている <code>CSSUnparsedValue</code></dd>
 </dl>
 </dd>
 <dt><code><var>thisArg</var></code> {{Optional_inline}}</dt>
 <dd>
 <p><code><var>callback</var></code> の実行中に、 <code><strong>this</strong></code> として使用する値 (つまり、 <code>Object</code> の参照)。.</p>
 </dd>
</dl>

<h3 id="Return_value" name="Return_value">返値</h3>

<p>{{jsxref("undefined")}}</p>

<h2 id="Specifications" name="Specifications">仕様書</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">仕様書</th>
   <th scope="col">状態</th>
   <th scope="col">備考</th>
  </tr>
  <tr>
   <td>{{SpecName('CSSOM','#cssunparsedvalue','forEach()')}}</td>
   <td>{{Spec2('CSSOM')}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>

<p>{{Compat("api.CSSUnparsedValue.forEach")}}</p>