<!-- 父节点 -->
<scroll-view scroll-y='true' class="container-scroll" enable-flex='true' wx:for='{{currentQuesiton}}' wx:item='item' wx:key="index" wx:for-index="childindex">
<view class="container">
<!-- 标题 -->
<view class=" title">{{item.questionNo}}、{{item.questionContent}}</view>
<!-- 选项 -->
<view class="answer-box">
<radio-group bindchange="radioChange" data-index="{{childindex}}">
<!-- 子节点 -->
<label wx:for="{{item.scaleOptions}}" wx:item='item' data-index="{{childindex}}" wx:key="unique" class="item">
<view>
<radio value="{{item.option}}" checked="{{item.checked}}" />
</view>
<view class="">{{item.optionContent}}</view>
</label>
</radio-group>
</view>
</view>
</scroll-view>
(已解决)微信小程序wxml双重循环怎么获取父循环节点的下标
最新推荐文章于 2024-06-06 11:10:43 发布