JS의 이 키워드
이 키워드
따라서 이 키워드를 더 살펴보겠습니다.
함수는 4가지 다른 방법으로 호출할 수 있다는 것을 알고 있습니다.
ㅏ. 메소드 => this = <메소드를 호출하는 객체>

Call to the function moreshwar.calcAge();
참고: _*this *_should/의 값은
moreshwar
입니다.비. 단순 함수 호출: 여기서 this = undefined
Note: its is valid only for strict mode
전.

씨. Arrow 함수를 사용한 함수 호출

디.
EventListner => this = <DOM elements that handler is attachedto>
Reference
이 문제에 관하여(JS의 이 키워드), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/moreshwar/this-keyword-in-js-2kol텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)