jquery version of array.contains

前端 未结 4 1358
我在风中等你
我在风中等你 2021-01-30 12:26

Can jQuery test an array for the presence of an object (either as part of the core functionality or via an avaible plugin)?

Also, I\'m looking for something like a

4条回答
  •  时光说笑
    2021-01-30 13:09

    If your list contains a list of elements, then you can use jQuery.not or jQuery.filter to do your "array.remove". (Answer added because of the high google score of your original question).

提交回复
热议问题