티스토리 뷰
<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>
댓글