87,921
社区成员
发帖
与我相关
我的任务
分享
<input type="checkbox" name="a"/>
<input type="checkbox" id="a" name="b"/>
<input type="checkbox" name="b"/>
<input type="checkbox" name="a"/>
<script type="text/javascript">
function test()
{
var a=document.getElementsByName("a");
alert(a.length);
}
test();
</script>