- 博客(2)
- 收藏
- 关注
原创 jQuery基础总结
1 :eq()和nth-child() 看下面代码:$(function(){$("#selected-plays > li:eq(1)").addClass("a");//等价于 $("#selected-plays > li:nth-child(2)").addClass("a");//注意:js数组是从 0 开始的,所以eq(1)是取第二个元素。//而css选择器:nth-child()
2009-06-05 17:27:00 278
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人