Vue中使用for循环遍历表格

for="(user,index) in user">
序号 姓名 性别 年龄

 

 
 

这种写法也可以直接换成:{{user.age}}

结果:

Vue中使用for循环遍历表格_第1张图片

你可能感兴趣的:(Vue中使用for循环遍历表格)