Frontend/Vue
[Vue] 인스턴스 생성
joy_95
2021. 9. 12. 16:26
1 인스턴스 생성
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>뷰 기초 익히기</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
</head>
<body>
<div id="app">
{{name}}
</div>
<script>
new Vue({
el: '#app',
data: {
name : '뷰를 시작합니다.'
}
})
</script>
</body>
</html>
결과값 :
반응형