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 |
Tags
- docker compose setting
- Dockerfile setting
- dockerignore setting
- docker image 배포
- cloudflare ssl
- XMLHttpRequest 예제
- cloudflare Origin Server CA
- XMLHttpRequest with promise
- nodejs mariaDB
- Raspberry Pi docker install
- docker image deploy
- 로스트아크 API
- cloudflare
- docker compose
- cloudflare DNS
- docker compose example
- cloudflare certbot
- nodejs myslq2
- JavaScript
- 코어자바스크립트
- 코어 자바스크립트
- Raspberry Pi docker-compose install
- 로스트아크 open API
- dockerignore example
- Dockerfile example
- cloudflare Origin Server
- 코어자바스크립트 정리
- docker
- nodejs DB
- XMLHttpRequest example
Archives
- Today
- Total
목록2023/04/09 (1)
오늘
코어 자바스크립트 정리 - [3] this
대부분의 객체지향 언어에서 this는 클래스로 생성한 인스턴스를 의미. 하지만 자바스크립트에서의 this는 어디서든 사용 가능하다. 01 - 상황에 따라 달라지는 this 더보기 자바스크립트에서 this는 기본적으로 실행 컨텍스트가 생성될 때 함께 결정됨. ( 함수를 호출할 때 결정됨.) 1) 전역공간에서의 this 전역공간에서의 this 는 전역객체를 가르킴. 브라우저 환경의 전역객체 : window Node.js 환경의 전역객체 : global 자바스크립트의 모든 변수는 실은 특정 객체의 프로퍼티로써 동작 > 전역변수를 선언하면 자바스크립트 엔진은 이를 전역객체의 프로퍼티로 할당. 2) 메서드로서 호출시 this 함수 vs 메서드 공통점 : 미리 정의한 동작을 수행하는 코드 뭉치 함수 : 그 자체로 ..
javascript
2023. 4. 9. 01:21