반응형
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
- 다이나믹프로그래밍
- Backjoon
- 스택
- 삼성
- DFS
- sort
- Blind
- SSAFY
- Python
- 싸피
- 자바스크립트
- 코테
- 카카오
- 파이썬
- 코딩테스트
- algorithm
- 백준
- javascript
- 프로그래머스
- kakao
- boj
- 그래프
- 완전탐색
- BFS
- 힙큐
- DP
- SWEA
- 알고리즘
- 자료구조
- SW역량테스트
Archives
- Today
- Total
목록vue (2)
맞왜틀
📗 axios 전역으로 사용하기 axios 를 사용할 때 필요한 컴포넌트에서만 import 를 해서 사용할 수도 있지만, 사용해야 하는 컴포넌트가 너무 많아진다면 axios를 매번 import 하지 않고 전역으로 사용하면 된다. 🟢 axios 설치 npm install --save axios 🟢 axios 전역으로 설정 - main.js 에서 다음과 같이 추가해 준다. 🟢 axios 사용하기 - 설정한 이름 $axios 앞에 this 를 붙여서 사용
Programming language/JavaScript
2020. 9. 14. 20:09
🚗 ES6+ 에서 Obj를 간결하게 선언 const name = 'deok' const obj1 = { name: name, sayHello: function() { return `Hi my name is ${this.name}` } } const obj2 = { name, sayHello() { return `Hi my name is ${this.name}` } } obj1과 ob2는 완전히 같다. 🚓 객체의 비구조화(destructuring) const student = { name: 'deok', email: 'deok@deok.com', phone: '01012345678' } // 1번 // const name = student.name // const email = student.email /..
Programming language/JavaScript
2020. 7. 10. 13:57