美文网首页
微信小程序—循环套循环中索引设置

微信小程序—循环套循环中索引设置

作者: name_howe | 来源:发表于2019-10-22 14:38 被阅读0次
<view class="other-comment" wx:for="{{datas}}" wx:key="{{index}}">
    <view class="other-comment-title">
        <view>
            <text>{{item.name}}</text>
        </view>
        <view class="other-comment-img" wx:for="{{item.data}}" wx:for-item="item2" wx:for-index="index2" wx:key="{{index2}}" data-id2="{{index}}" data-id="{{index2}}">
            <text>{{item2.name}}</text>
        </view>
    </view>
</view>

相关文章

网友评论

      本文标题:微信小程序—循环套循环中索引设置

      本文链接:https://www.haomeiwen.com/subject/luyqvctx.html