vue.js 6
<html>
<head>
<title>test6</title>
</head>
<body>
<div id='app'>
<span v-if="Alphabet=='a'">A 입니다</span>
<span v-else-if="Alphabet=='b'">B 입니다</span>
<span v-else>그외 나머지 입니다</span>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
<script>
new Vue({
el:'#app',
data:{
Alphabet:'a'
}
})
</script>
</body>
</html>
댓글
댓글 쓰기