<!-- 动态列表 -->
<ul>
<!--
1.v-for 要卸载循环项上
2.v-for的语法规则:
v-for"(变量名,index) in/of 数组"
变量名 代表了 数组中的每一个元素
-->
<li v-for="name in names">
{{name}}
</li>
</ul>
//遍历对象数组vips
<table>
<tr>
<th>序号</th>
<th>会员名</th>
<th>年龄</th>
<th>选择</th>
<tr>
<tr v-for="(vip, index) in vips">
<td>{{index + 1}}</td>
<td>{{vip.name}}</td>
<td>{{vip.age}}</td>
<td><input type="checkbox"></td>
</tr>
</table>
//遍历对象的属性
<ul>
<li v-for="(value, propertyName) of user">
</li>
</ul>
//遍历字符串
<ul>
<li v-for="(c,index) of str">
{{index}},{{c}}
</li>
</ul>
//遍历指定次数
<ul>
<li v-for="(num,index) of counter">
{{index}},{{num}}
</li>
</ul>