반응형
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 |
Tags
- Django
- Dependency
- DI
- Django 특정 값 가져오기
- html
- table tag
- Dependency Injection
- html cell
- html cell size
- table cell size
- Spring
- Django column 값 가져오기
Archives
- Today
- Total
emluy 개발 일기
expressjs - module.experts 와 experts. 의 차이 본문
SMALL
https://programmingsummaries.tistory.com/340
[NodeJS] module.exports 와 exports 의 차이점
Express 에 대해서 분석하다보니, Router 부분에서 다소 익숙치 않은 부분을 발견했다. 아래와 같이 module.exports 에 객체를 직접 대입하는 부분이었는데, 항상 exports 아래에 프로퍼티로 값을 추가해주
programmingsummaries.tistory.com
1. module.experts 는 항상 코드 맨 마지막에 써 준다.
-> module.experts가 나오기 전 위의 코드들을 모듈화해서 (묶어서) 외부로 보내주는 것 (내보낼 함수가 여러개일때는 쓰지 못한다.)
2. experts는 각각 함수들에게 밖으로 나갈 권리를 주는 느낌
반응형
'웹 개발 > express.js' 카테고리의 다른 글
express.js - passport로 회원가입, 로그인 구현하기 (DB연결 x) (0) | 2020.08.20 |
---|---|
express.js #2 - (중요!) MVC패턴 갖추기 (회원가입구현) (0) | 2020.08.06 |
express.js - mongoDB 연결 후 DB, Collection(table), Document(data) 다루기, 관련 shell 명령어 (0) | 2020.08.03 |
express.js #1 - MongoDB 연결하기 (0) | 2020.07.31 |
express.js #0 - css 연결 (0) | 2020.07.31 |
Comments