摘要: 1、选择器+遍历 $('div').each(function (i){ i就是索引值 this 表示获取遍历每一个dom对象 }); 2、选择器+遍历 $('div').each(function (index,domEle){ index就是索引值 domEle 表示获取遍历每一个dom对象 } 阅读全文
posted @ 2018-03-22 11:22 笑兮兮 阅读(191) 评论(0) 推荐(0) 编辑