aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html')
-rw-r--r--files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html b/files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html
new file mode 100644
index 0000000000..22d1a4fba1
--- /dev/null
+++ b/files/zh-cn/mozilla/tech/xul/property/selectedindex/index.html
@@ -0,0 +1,21 @@
+---
+title: selectedIndex
+slug: Mozilla/Tech/XUL/Property/selectedIndex
+translation_of: Archive/Mozilla/XUL/Property/selectedIndex
+---
+<div class="noinclude">
+ <span class="breadcrumbs XULRefProp_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference" title="XUL_Reference">XUL Reference</a></span></div>
+<dl>
+ <dt>
+ <code><span><a href="https://developer.mozilla.org/zh-CN/docs/XUL/Property/selectedIndex">selectedIndex</a></span></code></dt>
+ <dd>
+ Type:
+ <i>
+ integer</i>
+ </dd>
+ <dd>
+ Returns the index of the currently selected item. You may select an item by assigning its index to this property. By assigning <code>-1</code> to this property, all items will be deselected.</dd>
+</dl>
+<div class="noinclude">
+  </div>
+<p></p>