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
- barplot
- react #회원가입 #비밀번호비교
- 배열삭제
- DataFrame
- 그래픽
- React
- useState
- 백준
- getline
- R 그래프
- 백준 11718
- vetor
- 배열추가
- 이용현황분석
- plot in r
- 탈출문자
- 광명시버스분석
- 데이터분석
- await
- 값추가
- 버스분석
- 값삭제
- barplot in r
- 10172
- 백준 10172
- 이스케이프시퀀스
- R데이터형태
- asynchronization
- setstate
- 그대로 출력하기
Archives
- Today
- Total
devlog_zz
vueStudy v-for 본문
728x90
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>VueJS Tutorials</title>
<link href="styles.css" rel="stylesheet" />
<script src="https://unpkg.com/vue"></script>
</head>
<body>
<div id="vue-app">
<h1>Looping through lists</h1>
<ul>
<li v-for="character in characters">{{ character }}</li>
</ul>
<ul>
<li v-for="(ninja, index) in ninjas">{{ index }} . {{ ninja.name }} - {{ ninja.age }}</li>
</ul>
<!-- <div v-for="(ninja, index) in ninjas">
<h3>{{ index }} . {{ ninja.name }}</h3>
<p>Age - {{ ninja.age }}</p>
</div> -->
<template v-for="ninja in ninjas">
<div v-for="(val, key) in ninja">
<p>{{key}} - {{ val }}</p>
</div>
<hr />
</template>
</div>
</body>
<script src="app.js"></script>
</html>
v-for
<div v-for 하면 여러 div가 생김 -> <template v-for로 해결
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 - Refs (0) | 2020.03.25 |
vue Study - component (0) | 2020.03.25 |
Comments