Do you use 'this' in front of instance variables?

前端 未结 17 2145
猫巷女王i
猫巷女王i 2020-12-19 01:08

When accessing instance variables or properties of a class from within the class itself, do you prepend them with \"this.\"?

17条回答
  •  Happy的楠姐
    2020-12-19 02:07

    Nope! I can certainly see that it might be beneficial, but nothing I work on is sufficiently complex to need another level of clarification.

提交回复
热议问题