【发布时间】:2018-01-07 20:17:35
【问题描述】:
我有这个 v-for 循环我的 vue.js 应用程序:
<div v-for="(word, index) in dictionary">
// break if index > 20
<p>{{word}}</p>
</div>
我想在渲染 20 个单词后跳出循环。我怎样才能做到这一点? 我查看了docs,但没有看到任何关于此的内容。
【问题讨论】:
标签: javascript vue.js