-
javascript 에서 this 가 가리키는 것카테고리 없음 2020. 2. 17. 16:19
1. global scoped 사용-window
2.global scope>function -window
3.global scope>object >function - object
4.global scope->object >function>inner function -window //좀 당황 스러운 결과네요5. when using "this" as constructor - the instance that will gonna be constructed
>>>>reference
https://hsp1116.tistory.com/7?category=547737
자바스크립트 - this 키워드
this 키워드는 자바스크립트와 다른 클래스 기반 언어와는 약간 다른개념이다. C++에서 this라함은 보통 이를 사용하는 멤버함수가 속한 클래스를 가르키는 포인터이고, java또한 비슷한 기능을 가진다. 이렇게 클..
hsp1116.tistory.com