Vue Js - Loop via v-for X times (in a range)

前端 未结 6 1059
星月不相逢
星月不相逢 2021-01-30 04:54

How can I repeat a loop via v-for X (e.g. 10) times?

// want to repeat this (e.g.) 10 times

6条回答
  •  爱一瞬间的悲伤
    2021-01-30 05:18

    I had to add parseInt() to tell v-for it was looking at a number.

  • {{n}}
提交回复
热议问题