$this vs $(this) in jQuery

后端 未结 15 757
北恋
北恋 2020-11-29 18:07

I\'ve seen some discussions on SO regarding $(this) vs $this in jQuery, and they make sense to me. (See discussion here for an example.)

Bu

15条回答
  •  粉色の甜心
    2020-11-29 18:41

     $this = $(this)
    

    which means that you are assigning the current object to a variable named $this. It is not a keyword.

    It is just a variable name.

提交回复
热议问题