jq 遍历 each方法
摘要:
1、选择器+遍历 $('div').each(function (i){ i就是索引值 this 表示获取遍历每一个dom对象 }); 2、选择器+遍历 $('div').each(function (index,domEle){ index就是索引值 domEle 表示获取遍历每一个dom对象 } 阅读全文
posted @ 2017-05-07 17:55 童彪 阅读(6046) 评论(0) 推荐(0)
posted @ 2017-05-07 17:55 童彪 阅读(6046) 评论(0) 推荐(0)
posted @ 2017-05-07 17:27 童彪 阅读(1889) 评论(0) 推荐(0)
posted @ 2017-05-07 17:13 童彪 阅读(1318) 评论(0) 推荐(0)
posted @ 2017-05-07 15:43 童彪 阅读(4764) 评论(2) 推荐(0)
posted @ 2017-05-07 15:32 童彪 阅读(429) 评论(0) 推荐(0)
posted @ 2017-05-07 14:27 童彪 阅读(184) 评论(0) 推荐(0)