微信小程序wx:for循环多个嵌套数组
读取数据,数组下有多个数组:

wxml页面上显示:
wx:for="{{photo}}" wx:for-item="dayItem" wx:key="{{dayItem.id}}"wx:for="{{dayItem.color}}" wx:key="{{item.colorId}}"例子:
view class="scroll_box" wx:for="{{photo}}" wx:for-item="dayItem" wx:key="{{dayItem.id}}" view class='main' view class='title'{{dayItem.chineseName}} text class='subTitle'{{dayItem.englishName}}/text /view view class='more'查看更多 image src="image/more.png" mode="widthFix"/image /view /view view class="item_list" wx:for="{{dayItem.color}}" wx:key="{{item.colorId}}" image src="{{item.image}}" class="item_book_img" mode="widthFix"/image view class='title'{{item.title}}/view /view /view
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。

