输入banner图图片脚本导航/分类

js如何获取表单元素个数


    
    

首先获取表单对象,然后通过length属性获取表单元素的个数。输出结果为:“There are 4 elements in this document”。

你可以把代码复制到这个页面运行一下。