jQuery not() 方法

not() 方法返回不匹配标准的所有元素。

提示:not() 方法与 filter() 相反。

下面的例子返回不带有类名 "url" 的所有 <p> 元素:

实例

$(document).ready(function(){  $("p").not(".url");});

尝试一下 »