要求轮播图,当鼠标悬浮的时候,轮播停止,鼠标离开,轮播继承
<div class="swiper-container classWrap" (mouseover)='stop()'></div>
stop() {
console.log(this.classWrap);
this.classWrap.autopaly.stop();
}
然后鼠标悬浮上去就是一系列的报错
请问有这个问题有哪位大神会吗?
非常感谢
要求轮播图,当鼠标悬浮的时候,轮播停止,鼠标离开,轮播继承
<div class="swiper-container classWrap" (mouseover)='stop()'></div>
stop() {
console.log(this.classWrap);
this.classWrap.autopaly.stop();
}
然后鼠标悬浮上去就是一系列的报错
请问有这个问题有哪位大神会吗?
非常感谢
写this.stop()可以了,谢谢诸位