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

前端 未结 17 2163
猫巷女王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条回答
  •  心在旅途
    2020-12-19 01:47

    I do, for me it adds a bit of clarity to the code, is it in the current procedure or the class?

提交回复
热议问题