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 | 31 |
Tags
- React
- NPM
- 리액트스타디
- 리액트
- mongoose
- NoSQL
- sementicversion
- nodeJS
- 시퀄라이즈공부
- 클래스컴포넌트
- component
- 시퀄라이즈
- node
- sequelize
- mongo
- npm명령어
- nodejs교과서
- React Component
- 제로초예제
- 리액트컴포넌트
- express-generator
- MongoDB
- 리액트기초
Archives
- Today
- Total
목록javascript/ES6 (1)
개발노트

hooks 문법 created : function(){} created (){ } 화살표함수 this차이점 js는 기본적으로 전역변수로 시작하는데, 변수선언하면 최상단 브라우저객체인window에 담아짐 (1) this 도 이 window를 가리키고 (2) function내의 this 도 전역this임 function sum(a, b){ console.log(this); return a+b; } const sum = (a,b)=> { console.log(this); return a+b }; >>undefined (3) 생성자로 생성하는 함수의 this function Vue(el){ console.log(this); this.el = el; } new Vue('#app'); (4) 비동기 처리의 this..
javascript/ES6
2021. 4. 19. 11:33