vue怎么遍历数组
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<script src="http://libs.baidu.com/jquery/1.7.2/jquery.min.js"></script>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
<ul v-for="forName in test">
<li>姓名:{{forName.name}} ,年龄:{{forName.age}}</li>
</ul>
</div>
</body>
<script>
var app = new Vue({
el:"#app",
data:{
test:[
{name:"张三",age:23},
{name:"李四",age:24},
{name:"王五",age:25},
{name:"赵六",age:26}
]
},
methods:{
}
})
</script>
</html>