Vue 初识Vue

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<script src="js/vue.js"></script>
</head>
<body>
<div class="parent">
<p>{{ message }}</p>
</div>
<script>
new Vue({
el: '.parent',
data: {
message: 'Hello Vue.js!'
}
})
</script>
</body>
</html>


data: {
newTodoText: '',
visitCount: 0,
hideCompletedTodos: false,
todos: [],
error: null
}

 

posted @ 2017-08-09 18:22  ThisCall  阅读(199)  评论(0编辑  收藏  举报