JavaScript/vue.js/for限制循环:修订间差异
来自康健生活
| 第9行: | 第9行: | ||
<div v-for="(item, index) in CasesList" v-if="index===0"> | <div v-for="(item, index) in CasesList" v-if="index===0"> | ||
<img :src="item.picture" width="223" height="280"/> | <img :src="item.picture" width="223" height="280"/> | ||
</div></syntaxhighlight> | |||
<syntaxhighlight lang="html5"> | |||
<div class="list_img_holder_large" v-for="(img, index) in result.imgs.slice(0,1)"> | |||
<img :src=""> | |||
</div></syntaxhighlight> | </div></syntaxhighlight> | ||