【微信小程序】二维数组列表渲染

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>

转载于:https://www.cnblogs.com/Mo-ka/p/6413522.html

你可能感兴趣的:(【微信小程序】二维数组列表渲染)