2019年11月29日

循环中的第一个元素设置动态class

摘要: 在循环中添加::class="{'layui-this':!index}",eg: <li :class="{'layui-this':!index}" v-for="(item,index) in tabList">{{item}}</li> 阅读全文

posted @ 2019-11-29 10:46 树懒懒 阅读(483) 评论(0) 推荐(0) 编辑

导航