<ul>
<li v-for="(site,index) in sites" :key="index" :id="forId(index)">
<span class="channel-li-li-border">
<span class="firstLevel">{{site.name}}</span>
</span>
</li>
</ul>
<script>
new Vue({
el: '#cat2s',
data: function(){
return {
brandList: [],
sites: [
{ name: '품질검수 서비스' },
{ name: '배송물류 서비스' },
{ name: '브랜드사 리스트'}
]
}
},
methods: {
forId:function(index){
return "forid_" +index
},
}
})
动态创建Echarts的ID盒子
最新推荐文章于 2023-12-27 14:49:03 发布