what does this mean: “jQuery('> li', this)”

前端 未结 6 456
慢半拍i
慢半拍i 2021-01-13 01:38

I\'m trying to figure out how this jQuery plugin works: http://codeasily.com/jquery/multi-column-list-with-jquery

In the plugin there is this line at the beginning:<

6条回答
  •  粉色の甜心
    2021-01-13 02:13

    Don't use it. The docs advise that you shouldn't use at as it will be soon deprecated.

    From http://api.jquery.com/child-selector/

    Note: The $("> elem", context) selector will be deprecated in a future release. Its usage is thus discouraged in lieu of using alternative selectors.


    But to answer, it effectively uses the element(s) from which the selector is called as the left hand operand of the child-selector.

提交回复
热议问题