created(){
var _this = this
_this.swiperOption={
transitionStart: function () {
for (let i = 0; i < this.slides.length; i++) {
const slide = this.slides.eq(i)
slide.removeClass('ani-slide')
_this.current = this.activeIndex
}
},
}
}
}
在data里先来一个空对象,在created中再来赋值