getElementsByName在IE中取到的對象
<a href="javascript:void(0);" >測試1</a>
<a href="javascript:void(0);" name="test1">測試2</a>
<script type="text/javascript">
var objs = document.getElementsByName('test1');
alert(objs.length);
</script>
IE8中的值為2IE11中的值為1
Firefox,Chrome的值為1
最後更新:2017-04-03 05:39:19