Open askiebaby opened 4 years ago
https://askiebaby.github.io/this-arrow-function-in-javascript/
原來 arrow function 的出現是為了解決 this 的問題。箭頭函數當中的 this 是定義時的對象,而不是使用時的對象。
寫得非常棒! 讓我收穫很多! 感謝!
https://askiebaby.github.io/this-arrow-function-in-javascript/
原來 arrow function 的出現是為了解決 this 的問題。箭頭函數當中的 this 是定義時的對象,而不是使用時的對象。