赞
踩
https://bbs.csdn.net/topics/392289820?page=1
<ul id="example"> <li v-for="(item, index) in items" v-if='index<2'> {{ index }} - {{ item.message }} </li> </ul>