jq过滤器方法 选择器

来源:互联网 发布:逆希尔伯特矩阵 编辑:程序博客网 时间:2024/05/23 16:33

.first

.last

.slice得到集合中的 两个索引参数 之间的元素 不包括两边

.eq  得到索引值 元素

.filter eg  ,parents().filter(".people")

$f = $(".fish").parent().parent().detach()  将得到的元素移动到变量中


$(".tofu").each( function(i){   //each会循环处理数组中的每一个元素
$(this).after($m[i]);
});//end each



0 0