data: {
comment: {
patient: true,
onTime: true,
service: true,
fast: true,
handsome: true,
},
someone:{
name: "张三",
attrs: {'身高': '178cm', '体重':'60kg', '胸围': '36C', '腿长': '1m', '臂长': '60cm'}
}
},
<view wx:for="{{comment}}" wx:for-index="key" wx:for-item="value">
<view data-index="{{key}}" bindtap="selectComment">{{value}}</view>
</view>
<view class='attrs' wx:for='{{someone.attrs}}' wx:for-index='key'>
<text>{{key}}:{{item}}</text>
</view>