What is the difference between this and $(this) in jQuery?

后端 未结 3 1497
情深已故
情深已故 2021-01-01 05:53

What is the difference between this and $(this) in jQuery? And when should I use which?

3条回答
  •  北荒
    北荒 (楼主)
    2021-01-01 06:04

    this returns a native JavaScript object (if I call it right), $(this) returns a jQuery object.

    $(this)[0] == this
    

提交回复
热议问题