微信小程序 picker 中range-key的坑

 

<picker class='fr' bindchange="onChangeBuild" range-key="{{'num'}}" value="{{buildIndex}}" range="{{aBuilding}}">
        <view class="picker">
             罗兰{{aBuilding[buildIndex].num}}幢
        </view>
</picker>

range-key中的值要么 range-key="{{'num'}}",要么range-key="num'"

相关文章

判断H5页面环境在微信中还是小程序中 用小程序提供的wx.mini...
wx.reLaunch和wx.navigateTo,wx.navigateTo的区别 2019-03-...
微信小程序如何从数组里取值_微信小程序 传值取值的几种方法...
H5项目接入微信授权登录,通过 UA 区分微信还是普通浏览器:...
微信小程序获取data-xx=&quot;&quot;属性的值,自定...
小程序报错:TypeError: Cannot read property ‘addEventLi...