반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- custom command
- vue-cli
- TLS
- http3
- Cypress
- https
- caching
- 선택자
- vue3
- web vital
- e2e
- rendering
- typeScript
- SSR
- QUIC
- ts error
- CSS
- CloudFlare
- svelte
- msw
- 비동기
- JavaScript
- vue
- aws
- ViTE
- devtools
- csr
- Testing
- import.meta.env
- api test
Archives
- Today
- Total
목록apply (1)
Develop Note by J.S.
[Javascript] This
This란? Javascript의 this 키워드는 함수를 호출한 방법에 따라 this가 가리키는 객체가 변경됩니다. 일반적으로 this는 브라우저에서는 window 전역객체를 가리키고, Node에서는 global 전역객체를 가리킵니다. // 브라우저 this === window; // true // Node.js this === global; // true this 값 할당 전역 범위내에서의 this는 전역객체를 가리키는데 Custom한 객체 내의 프로퍼티 Value로 정의한 함수내에서의 this는 자신이 속한 Custom 객체를 가리킵니다. var Obj = { whatsThis : function () { return this; } } Obj.whatsThis() === Obj // true 또한 ..
Language/Javascript
2023. 6. 28. 10:02