Jquery过滤

jQuery first(): $("div p").first();

jQuery last():$("div p").last();

jQuery eq():$("p").eq(1);(索引从0开始)

jQuery filter() :$("p").filter(".intro");

jQuery not():$("p").not(".intro");

摘自W3School网站

你可能感兴趣的:(Jquery过滤)