How can I repeat a loop via v-for X (e.g. 10) times?
v-for
// want to repeat this (e.g.) 10 times
You can use the native JS slice method:
The slice() method returns the selected elements in an array, as a new array object. Based on tip in the migration guide: https://vuejs.org/v2/guide/migration.html#Replacing-the-limitBy-Filter 0 讨论(0) 查看其它6个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复
The slice() method returns the selected elements in an array, as a new array object.
Based on tip in the migration guide: https://vuejs.org/v2/guide/migration.html#Replacing-the-limitBy-Filter