https://www.cnblogs.com/liubingyjui/p/12370856.html
:class="{'characterSelect':spanIndex.indexOf(index)>-1}"
.characterSelect {
border: 1px solid #dbf0f9;
color: skyblue;
background-color: #dbf0f9;
}
data:{
spanIndex: [],
},
let arrIndex = this.spanIndex.indexOf(index);
if (arrIndex > -1) {
this.spanIndex.splice(arrIndex, 1);
} else {
this.spanIndex.push(index);
}