for in (foreach概念)
<html>
<head>
<meta charset="utf-8">
<title>for in (foreach概念)</title>
</head>
<body>
<div id="show">
<ul>
<li v-for="row in array">{{ row.name }}</li>
</ul>
</div>
</body>
<script src="vue.js"></script>
<script>
new Vue({
el: '#show',
data: {
array: [
{name: '老鷹'},
{name: '泰大'},
{name: '小雨大'},
{name: '總裁'},
{name: '賽大'},
{name: '克拉克'},
{name: '胖達'}
]
}
})
</script>
</html>