반응형
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
- ts error
- api test
- e2e
- devtools
- Testing
- vue
- JavaScript
- CSS
- QUIC
- rendering
- ViTE
- typeScript
- caching
- msw
- csr
- 비동기
- aws
- SSR
- import.meta.env
- https
- CloudFlare
- TLS
- svelte
- vue-cli
- 선택자
- Cypress
- web vital
- http3
- vue3
- custom command
Archives
- Today
- Total
목록catch (1)
Develop Note by J.S.
[Javascript] Promise
1. Promise란 Promise는 ES6에서 새로나운 객체로, then, catch, finally 프로퍼티를 사용하여 비동기처리를 제공하는 기능입니다. 1) then : 앞선 비동기 동작이 종료된 후 동작될 function을 매개변수로 정의한 뒤 이후 순차적으로 then내부에 있는 function들이 동작됩니다. 2) catch : then 동작 중 error 발생 시 가로채어 에러처리를 정의할 수 있습니다. 3) finally : 모든 then 동작이 마무리된 후 마지막에 실행 될 function을 정의합니다. 2. Promise 예제 console.log('1'); function callback1 () { return new Promise ((resolve)=> { setTimeout(func..
Language/Javascript
2023. 6. 19. 09:22