Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 765 Bytes

File metadata and controls

17 lines (13 loc) · 765 Bytes
title 如何使用循环值
sidebar_position 0

1.设置循环数据 image.png

2.给需要的变量绑定 this.item image.png

绑定之后的效果如下: image.png

其中 this.item 的 item 是可以配置的。配置不同的 key 可以方便在多层循环中使用不同层级的循环 item 值。 image.png

this.index 是当前循环的索引值。