可以使用slice或者splice获取数组中的特定部分进行输出: <li v-for="item of array.slice(0, 5)" :key="item.id">{{ item.name }}</li>