Page({
mapData:[
[{id:11},{id:12}],
[{id:21},{id:22}],
[{id:31},{id:32},{id:33}]
]
})
<view class="container">
<view class="map">
<view wx:for="{{mapData}}">
<view wx:for="{{item}}">
{{item.id}}
</view>
</view>
</view>
</view>
Page({
mapData:[
[{id:11},{id:12}],
[{id:21},{id:22}],
[{id:31},{id:32},{id:33}]
]
})
<view class="container">
<view class="map">
<view wx:for="{{mapData}}">
<view wx:for="{{item}}">
{{item.id}}
</view>
</view>
</view>
</view>
|
请发表评论