티스토리 뷰

Web/Vue

Vue 1

JiniPia 2019. 2. 18. 14:42

<html>

<head>

<meta charset="UTF-8">

<script src = "js/vue.js"></script>

<script src = "js/jquery.js"></script>

</head>

<body>

<div id='simple'>

<h2>{{message1}}</h2>

<span v-html="message2"></span>

</div>

<script>

var model = {

      message1: "첫 번째 Vue.js 입니다.",

      message2: "<h2> 첫 번째 Vue.js 입니다. </h2>"

    };

var simple = new Vue({

      el: '#simple',

      data: model

    })

</script>


</body>

</html>



'Web > Vue' 카테고리의 다른 글

v-bine  (0) 2019.02.18
v-text  (0) 2019.02.18
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
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
글 보관함