1 v-for 遍历数据渲染页面是非常常用的需求,Vue 中通过 v-for 指令来实现。 1.1 遍历数组 语法: v-for="item in items" items:要遍历的数组,需要在vue的data中定义好。 item:迭代得到的数组元素的别名 示例 <div id="app"> <ul> 来源:CSDN作者:不知所起 一往而深链接:https://blog.csdn.net/weixin_42112635/article/details/104095913 标签 vue 遍历