blob: 98f9ccf2fd50e3e419aff8db1969ef921b50dd1f (
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
|
---
title: itemCount
slug: Archive/Mozilla/XUL/Property/itemCount
tags:
- XUL Properties
- XUL Reference
translation_of: Archive/Mozilla/XUL/Property/itemCount
---
<div class="noinclude">
<span class="breadcrumbs XULRefProp_breadcrumbs">« <a href="/ja/docs/XUL_Reference" title="XUL_Reference">XUL リファレンス</a></span></div>
<dl>
<dt>
<code><span><a href="https://developer.mozilla.org/ja/docs/XUL/Property/itemCount">itemCount</a></span></code> </dt>
<dd>
型: <em>整数型</em></dd>
<dd>
子項目の数を保持する読み取り専用のプロパティ。</dd>
</dl>
<div class="noinclude">
<h2 id="Example" name="Example">例</h2>
<pre class="brush:js">var bucket = document.getElementById("attachmentBucket");
if(bucket.itemCount == 0) {
dump("\n\n No attachments \n\n");
} else {
dump("\n\n Attachment Exists \n\n");
}</pre>
</div>
|