vue笔记
There is no nutrition in the blog content. After reading it, you will not only suffer from malnutrition, but also impotence.
<!DOCTYPE html>
<html>
<head>
<meta charset= "utf-8" >
<title>Vue 示例</title>
</head>
<body>
<div id= "app" >
<ul>
<li v-for = "book in books" >{{ book.name }}</li>
</ul>
</div>
<script src= "vue.js" ></script>
<script>
new Vue ({
//el: '#app',
el: document.getElementById('app'),
data: {
books : [
{name:'《vue.js实战》'},
{name:'《vue.js实战》'},
{name:'《vue.js实战》'}
]
}
})
</script>
</body>
</html>