方法一: v-for="(item,index) in domainList.slice(0, 2)" 方法二: v-for="(item,index) in domainList" v-if="index<3"