picker在循环里面,怎么设置?
<view wx:for="{{array}}" wx:key=“item”>
<picker range="{{picker_array}}">
<view class="picker">
当前选择:{{picker_array[index]}}
</view>
</picker>
</view>
代码是这样子,循环里面有picker,然后选择的值用index,发现这个index是上面for的index,item也是for的item,那我想拿picker的index和item,怎么拿?
3 回复