일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- js await
- 준영속상태
- javascript async await
- 코프링
- springboot 모듈
- JPA준영속 상태
- 스프링부트
- javascript fetch
- js fetch
- gradle 모듈 프로젝트
- 코틀린 클래스
- JavaScript
- JPA플러쉬
- jpa 영속성
- javascript async
- springboot gradle 모듈 프로젝트
- js async await
- JPA
- jpa준영속
- 코틀린
- Flutter
- ja async
- spring gradle 모듈
- JPA플러시
- js api 호출
- spring 모듈 프로젝트
- javascript api 호출
- JS
- jpa 플러쉬
- jpa 플러시
Archives
- Today
- Total
목록js 프로미스 (1)
매일 한줄 코딩
13. javascript Promise
4. Promise 1. 콜백지옥2. 비동기 작업이 가지는 상태 3가지3. Promise 사용4. 기존 코드 콜백지옥에서 Promise 이용하여 벗어나기 1. 콜백지옥비동기방식의 콜백이 깊어지는 것 ⇒ 콜백지옥자바스크립트의 비동기를 돕는것 ⇒ Promise 아래처럼 콜백 지옥에 빠질 수 있다.//콜백에 콜백에 콜백... taskA(4, 5, (a_res) => { console.log("A result ", a_res); taskB(a_res, (b_res) => { console.log("B result ", b_res); taskC(b_res, (c_res) => { console.log("C result ", c_res); }); }); }); //... 2. 비동기 작업이 가지는 상태 3가지Pen..
develop/javascript
2022. 9. 11. 22:03