VUE学习笔记008 v-for 遍历数组和对象

遍历数组

characters:["aaaaaa","bbbbbbb","cccccccccc"]

  •  

            character

  • +++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    遍历对象

    users:[

    {name:"aaaaaaa",age:"10"},

    {name:"bbbbbb",age:"20"},

    {name:"ccccc",age:"30"},

    ]

            {{index+1}}. {{user.name}}  --{{user.age}}

    +++++++++++++++++++++++++++

    两层循环

           



    VUE学习笔记008 v-for 遍历数组和对象_第1张图片

    你可能感兴趣的:(VUE学习笔记008 v-for 遍历数组和对象)