小程序多重遍历==小程序遍历数组中的数组

代码:  遍历 modelList 数组套数组

<view class='modelitem' wx:for="{{modelList}}" data-order='{{item.name}}' wx:key>
            <view class='modelitemTitle' bindtap='modelitemTitle' data-index="{{index}}">{{item.name}}</view>
            <block wx:if="{{item.shows}}">
              <view class='modelitem_item' bindtap='modelitem_item' data-name='{{itemTwo.name}}' data-model='{{itemTwo.id}}' wx:for="{{item.shopTruckModelEntityList}}" wx:key wx:for-item="itemTwo">
                {{itemTwo.name}}
              </view>
            </block>
          </view>

猜你喜欢

转载自www.cnblogs.com/520BigBear/p/11328593.html