1.not(expression) 根据表达式参数的值,从包装集里删除元素

   example : $('img[alt]').not('[alt*=joy]') 返回包含属性alt的img元素,但img的alt属性中含有joy的除外

2.note :  not()方法不支持元素选择器   ,上面的语句如果写成$('img[alt]').not('img[alt*=joy]')是错误的!!!

相关文章:

  • 2021-05-22
  • 2021-05-23
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-02-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-15
  • 2022-02-21
  • 2022-12-23
相关资源
相似解决方案