javascript – What does "@" in "self = @" mean?

Question: Question:

I'm reading a jQuery plugin written in CoffeeScript, but I don't understand the @ description. It is used as follows, but what does this mean?

self = @

What does @ mean in Javascript and jQuery?
Even if I look for it in a book, there is no description about @ and I am in trouble.

Answer: Answer:

Explanation of the original site
All together now:
In the part of the comparison table of

CoffeeScript  JavaScript
@, this          this

Since it is, it seems to represent this in JavaScript (it can be considered the same).
As a shortcut for this.property, you can use @property.
Because there is an explanation,
It seems to be a shortcut for writing this.property like @property .

Scroll to Top