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
- AndroidStudio
- C#크롤링
- SQL
- jsx
- JSTL
- 서드파티모듈
- Java
- android
- egov
- 쿼리
- c:choose
- mybatis
- fullcalendar
- 동적쿼리
- HTTP
- react
- Callback
- 콜백
- MVC
- JavaScript
- vscode
- jQuery
- c:forEach
- node.js
- RequestMethod.POST
- MySQL
- 국제화
- NPM
- Spring
- iBATIS
Archives
- Today
- Total
목록동기실행 (1)
Today Yewon Learned
[Node.js] 비동기 프로그래밍과 콜백
동기 실행 방식 예시) const fs = require('fs'); console.log('Start'); let content = fs.readFileSync('./new', 'utf8'); // 동기 실행 부분 console.log(content); console.log('Finish'); 출력 결과) Start Hello Node.js! Finish - readFileSync 함수 : 동기 실행 함수 비동기 실행 방식 (Node.js 권장) - 특정 작업이 완료되었을 때 실행할 콜백을 등록해두고, 바로 다음 코드로 실행을 넘기는 것 예시) console.log('Start'); fs.readFile('./new', 'uft8', (error, data) => { // 비동기 실행 부분 consol..
javascript/Node.js
2021. 11. 16. 14:59