JavaScript jquery 表达式疑问

mogodb · February 27, 2015 · Last by mogodb replied at February 28, 2015 · 1905 hits

$('[rel]').not('link') 可否不用 not 函数,而写成一个表达式,如何实现?

$("[rel!='link']")

http://api.jquery.com/attribute-not-equal-selector/

jQuery only, not a valid CSS selector though.

#1 楼 @billy 不是 rel 不等于 link,是排除 link 元素

不是一个意思么。

#3 楼 @billy . ... ,排除第一种

You need to Sign in before reply, if you don't have an account, please Sign up first.