当一个函数作为对象的方法被调用时,this 指的是点号前的对象。例如,在 user.greet() 中,greet 内部的 this 指的是 user。这是 this 最直观的用法。
this
user.greet()
greet
user
用自己的话写下这一站的结论。