• 微信小程序的index能否在元素间传递?
  • 其它

<scroll-view class="product-info" scroll-y>
         <view class="product-property" wx:for="{{selectedFood.foodProperty}}" wx:key="{{index}}">
           <view class="product-property-item">{{index}}{{item.propertyName}}</view>
           <view class="product-property-select {{propertyDefault == index ? 'active' : ''}}" wx:for="{{item.propertyItem}}" wx:key="{{index}}" data-property-id="{{index}}" catchtap="selectProperty">
             {{item}}
           </view>
         </view>
       </scroll-view>
我要通过propertyDefault这个数组选择到对应的属性,我要怎么做?

  • 西西    2019-06-12 09:40:31
  • 阅读 894    收藏 0    回答 1
  • 邀请
  • 收藏
  • 分享
发送
登录 后发表评论
  • 51testing软件测试圈微信