Open bbibi opened 7 years ago
if (this.index === 0) { this.$el.classList.add('active') } 在 slider中有段这个初始化的判断第一个显示,但是this.$el为undefined; 报错这个:TypeError: Cannot read property 'classList' of undefined(…); 这个this.$el怎么找不到呢?
if (this.index === 0) { this.$el.classList.add('active') }
if (this.index === 0) { this.$el.classList.add('active') }
在 slider中有段这个初始化的判断第一个显示,但是this.$el为undefined; 报错这个:TypeError: Cannot read property 'classList' of undefined(…); 这个this.$el怎么找不到呢?