What is the difference between “this”, “$this” and “$(this)”?

前端 未结 6 1564
温柔的废话
温柔的废话 2020-12-04 08:13

What is the difference between these three forms:

this
$this
$(this)
6条回答
  •  既然无缘
    2020-12-04 08:45

    • this is the object upon which a method was called
    • $this is a poorly named variable with no special meaning
    • $(this) calls the poorly named function $ with this as its only argument

提交回复
热议问题