<a href="#" id="jc">好的</a>
<h3>我</h3>
<ul>
<li>0</li>
<li>1</li>
</ul>
<script>
var lis = document.getElementsByTagName("li");
for(var i = 0; i < lis.length; i++){
lis[i].onclick = function(event){
alert(event);
alert(i);//为是什么 等于2啊?上面的i不是小于lis.length吗??
}
}
</script>
menghuanbaolei
guaguaerhao
进击的小开
进击的小开
qq_孤独患者忧于心_03873802
qq_奈奈奈_03699702
LiuYina
stone310
相关分类