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

前端 未结 6 465
慢半拍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:17

    The 2nd parameter to the jQuery function is the context.

    jQuery('> li', this)
    

    Is the same as:

    jQuery(this).find('> li')
    

提交回复
热议问题