<script type="text/javascript">window.onload = function () {var oUl = document.getElementById('ul');var aLi = document.getElementsByTagName('li');aLi.onclick = function () {alert(1)}}</script></head><body><ul id="ul"><li>1</li><li>2</li></ul></body></html>
- 2 回答
- 2 关注
- 1027 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消