jQuery 获取除某指定对象外的其他对象 ( :not() 与.not())
jquery获取除某指定对象外的其他对象 .not() 遍历方法 从匹配元素集合中移除元素 :not() 选择器 选取除了指定元素以外的所有元素。 list item 1 list item 2 list item 3 list item 4 list item 5 获取ul中除 id=unwanted 的其他所有 li $('li:not(#unwanted)').css('background', '
下载地址
用户评论