vue中的双重for循环
举例说明this.tablebottombox中的数据是这样的表头表格数据效果图代码是这样的{{ item[headItem.fieldName] }}
·
举例说明
this.tablebottombox中的数据是这样的
表头
表格数据
效果图
代码是这样的
<div class="tabletop" v-for="(item, index) in this.tablebottombox"
> :key="index">
> <template v-for="(headItem, i) in tabletopbox">
> <div :key="i" class="tabletopbottom">
> {{ item[headItem.fieldName] }}
> </div>
> </template>
> </div>
更多推荐
已为社区贡献1条内容
所有评论(0)