2025-01-24T02:27:50
This commit is contained in:
9
doc/topics/This.md
Normal file
9
doc/topics/This.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# this
|
||||
|
||||
자바스크립트에서 this 키워드는 상식과 많이 다르게 작동합니다.
|
||||
|
||||
전역 컨텍스트에서의 this는 전역 객체(브라우저에서는 window 객체)를 가리킵니다.
|
||||
|
||||
일반적인 함수 컨텍스트에서는 전역 객체를 가리킵니다.
|
||||
|
||||
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/this
|
||||
Reference in New Issue
Block a user