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
- 그래픽
- React
- 광명시버스분석
- barplot in r
- 이용현황분석
- 값추가
- DataFrame
- react #회원가입 #비밀번호비교
- barplot
- 이스케이프시퀀스
- 백준 11718
- R 그래프
- setstate
- useState
- getline
- vetor
- 백준 10172
- await
- 값삭제
- R데이터형태
- 배열삭제
- asynchronization
- 백준
- 데이터분석
- 배열추가
- 10172
- plot in r
- 탈출문자
- 버스분석
- 그대로 출력하기
Archives
- Today
- Total
devlog_zz
vue Study - Refs 본문
728x90
Refs
refs : 템플릿에 접근하여 엘레멘트를 가져온 다음 데이터에 접근?
html에서 input에 넣은 내용(템플릿에 있는) 을 app.js의 Vue instance 로 접근할 수 있다.
this.$refs.input.value 로 입력한 값을 접근 할 수 있다.
< div ref="test">hello</div> 일 때 vue instance 에서 접근 :this.$refs.test.innerText |
-> refs 를 이용해서 페이지에서 요소를 참조하고 그들에 관한 정보를 얻는다
728x90
'Front End > Vue' 카테고리의 다른 글
vue study - props (0) | 2020.03.25 |
---|---|
vue study - nesting component (0) | 2020.03.25 |
vue study - nested component (0) | 2020.03.25 |
vue Study - component (0) | 2020.03.25 |
vueStudy v-for (0) | 2020.03.25 |
Comments