Opposite of jQuery's :eq()

前端 未结 5 1598
悲&欢浪女
悲&欢浪女 2020-12-16 09:14

Does anyone know if there exist some kind of selector to select al the elements from a matched set but the one given by the indicated index. E.g.:

$(\"li\").         


        
5条回答
  •  无人及你
    2020-12-16 10:06

    I would use filter for such case,

    $('li').filter(function (i, item) {
       return i != 2;
    })
    

提交回复
热议问题