jQuery selector context

前端 未结 1 1701
一整个雨季
一整个雨季 2020-12-16 01:00

In the following code, what does , this mean?

var popup = $(popup, this).css(\'opacity\',          


        
相关标签:
1条回答
  • 2020-12-16 01:23

    The second argument in the selector is a context for search. $(a,b) is the same as $(b).find(a).

    More information can be found at jQuery(), section "jQuery( selector, [ context ] )".

    0 讨论(0)
提交回复
热议问题