목록javascript this (1)
개발자 9Diin의 개발일기
자바스크립트 this란 무엇인가?
📌 What is this? ✅ this 자바스크립트를 사용함에 있어 가장 흔히 사용하는 값 중 하나는 바로 this 가 아닐까? 매번 this를 사용하면서 정확히 this가 무엇인 지에 대해 깊게 고민해본 적은 없었던 것 같다. 단순히 인터넷 강의에서 사용하다 보니 그냥 나도 모르게 익숙하게 사용했던 것 같다. w3Schools.com에서는 this를 이렇게 정의하고 있다. In a method, this refers to the owner object Alone, this refers to the global object In a function, this refers to the global object In a function, in strict mode, this is undefined In a..
2021-2023
2022. 4. 24. 21:27