ES6箭頭函數中的this指向

1箭頭函數中的this (1)箭頭函數中沒有this : 這意味着 call() apply() bind() 沒法修改箭頭函數中的this (2)箭頭函數中的this指向 :訪問上一個做用域的this 說人話:函數在哪一個做用域聲明,this就是誰 (本質是經過做用域鏈訪問上一個做用域中的this) (3)箭頭函數與function函數this區別 function函數 : 誰調用我,我就指向誰
相關文章
相關標籤/搜索