会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Top
Fork me on Gitee
lisashare
If you want something you've never had,then you've got to do something you've never done.
如果你想要你从未拥有过的东西,那么你必须去做你从未做过的事。
博客园
首页
新随笔
联系
订阅
管理
2018年2月27日
for 循环中的 i 变量取值问题
摘要: 1:如何点击某一个 li 的时候 alert 输出其index? <ul id="test"> <li>111</li> <li>222</li> <li>333</li> <li>444</li> </ul> window.onload = function(){ var oLis = docum
阅读全文
posted @ 2018-02-27 14:13 lisashare
阅读(4276)
评论(0)
推荐(0)
编辑
公告