2011年4月7日
摘要: 首先来看一段代码:<script type="text/javascript">function xc(){var ul1 = document.getElementById('ul1').getElementsByTagName('li');for(var i=0;i<ul1.length;i++){ul1[i].onclick=function(){alert(i);}}}window.onload = xc;</script><ul id="ul1"> <li>1 阅读全文
posted @ 2011-04-07 09:59 刘卿 阅读(308) 评论(0) 推荐(0) 编辑