问题求助!!
有大佬能够解释一下ArkTS中
myClickHandler(): void {
this.counter += 2;
}
// …
Button(‘add counter’)
.onClick(this.myClickHandler.bind(this))
这个this是什么意思呢?看了ai解释也没理解到…
有大佬能够解释一下ArkTS中
myClickHandler(): void {
this.counter += 2;
}
// …
Button(‘add counter’)
.onClick(this.myClickHandler.bind(this))
这个this是什么意思呢?看了ai解释也没理解到…