반응형
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
- ts error
- QUIC
- CloudFlare
- https
- JavaScript
- TLS
- http3
- 선택자
- ViTE
- import.meta.env
- rendering
- vue
- Testing
- SSR
- web vital
- devtools
- api test
- aws
- vue3
- svelte
- e2e
- 비동기
- CSS
- custom command
- vue-cli
- msw
- typeScript
- Cypress
- csr
- caching
Archives
- Today
- Total
목록arrow function (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