摘要: 元素过滤是Sizzle中最复杂的一部分基本形式Sizzle.filter = function( expr, set, inplace, not ) {}expr 过滤表达式set 候选集合inplace 是否原地修改not 是否取补集说明:set传递的是一个集合(数组),如果inplace为true,set会被修改;not的作用是用来取补集。还是用个例子来说明下:<li id="a1" class="test"></li><li id="a2" class="test">< 阅读全文
posted @ 2012-02-18 00:32 西山 阅读(1312) 评论(0) 推荐(1) 编辑