Select length 属性
定义和用法
length 属性返回下拉列表中 <option> 元素的数量。
浏览器支持
| 属性 | |||||
|---|---|---|---|---|---|
| length | Yes | Yes | Yes | Yes | Yes |
语法
selectObject.length
技术细节
| 返回值: | 一个数字,表示在下拉列表中找到的 <option> 元素个数 |
|---|
❮ Select 对象
length 属性返回下拉列表中 <option> 元素的数量。
| 属性 | |||||
|---|---|---|---|---|---|
| length | Yes | Yes | Yes | Yes | Yes |
selectObject.length
| 返回值: | 一个数字,表示在下拉列表中找到的 <option> 元素个数 |
|---|
