V-for =”number in productimage.cutCount “;
<view v-for="number in productImage.cutCount">
<view>{{ number }}</view>
</view>
In the little program WeChat, the result of the traversal is
<view>0</view>
<view>1</view>
<view>2</view>
<view>3</view>
<view>4</view>
And in H5, the result of the traversal is
<view>1</view>
<view>2</view>
<view>3</view>
<view>4</view>
<view>5</view>
V -for=”(item, index) in 10″. V -for=”(item, index) in 10″. V -for=”(item, index) in 10″. You can use the second parameter, index, to be consistent.