-
카테고리
-
세부 분야
풀스택
-
해결 여부
미해결
monggoose schema instance methods 작성시 화살표함수
21.11.16 15:18 작성 조회수 109
0
- Do not declare methods using ES6 arrow functions (
=>
). Arrow functions explicitly prevent bindingthis
, so your method will not have access to the document and the above examples will not work.
monggoose schema instance methods 작성시 화살표함수를 쓰게 되면 this는 무엇을 가르키나요
답변을 작성해보세요.
0
답변 1