数组变异

在把原来的数组替换成新的数组时

this.classlistIds = this.classIndex

这样直接给数组赋值是不可以的,要用数组变异方法oldArray.concat(newArray)

正确的方法是:  
this.classlistIds.concat(this.classIndex)
原文地址:https://www.cnblogs.com/JaniceDong/p/10062478.html