当前位置: 首页 > 网络学院 > 客户端脚本教程 > HTML DOM > HTML DOM length 属性
The length property returns the number of elements in a form.
使用length属性可返回出表单中的元素的数量
formObject.length |
The following example returns the number of elements in the form:
下面的举例将返回出表单中元素的数量:
<html> <form id="myForm" method="get"> <script type="text/javascript"> </body> |
Get the number of elements in a form
得到表单中元素的数量
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
吃惊 | 欠揍 | 支持 | 很棒 | 一般 | 搞笑 | 扯淡 | 不解 |