Difference between find and filter in jquery

后端 未结 3 1162
遇见更好的自我
遇见更好的自我 2020-12-05 07:23

I\'m working on fetching data from wiki pages. I\'m using a combination of php and jquery to do this. First I am using curl in p

3条回答
  •  醉梦人生
    2020-12-05 07:32

    .find() http://api.jquery.com/find/

    Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.

    Filter, on the other hand, works on the currently matched elements. That's why filter worked but find did not (you needed to look at the current element).

提交回复
热议问题