我的代码是:
<template v-for="(tab,index) in tabs">
<a v-bind:href="'#'+tab.SColumnKey" class="button tab-link active" v-bind:class="[index==0?'button tab-link active':'button tab-link ']" v-on:click="changeTab(tab.SColumnKey);"> {{ tab.SColumnName }}</a>
</template>
但出错,报什么:a[index出错....
http://cn.vuejs.org/v2/guide/...绑定-HTML-Class
这里写法就错了呀