<li v-for="item in items" class="pull-left">
<button type="button" class="btn btn-success"><i class="{{item.icon}}"></i>{{item.name}}</button>
</li>报错如下vue.js:2643 [Vue warn]: class="{{item.icon}}": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.
添加回答
举报
0/150
提交
取消