Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用带有自定义按钮的 $ionicSlideBoxDelegate.next() 来推进滑块。效果很好。我的目标是在有人实际按下下一个按钮时减慢幻灯片动画的速度。
遗憾的是,根据文档,某些版本的 ionic 存在一些不一致之处。你可以试试$ionicSlideBoxDelegate.slide(slideNumber, speed)。并在范围上创建一个索引来控制 slideNumber。:/
$ionicSlideBoxDelegate.slide(slideNumber, speed)
var 幻灯片 = $ionicSlideBoxDelegate; var nextIndex = slider.currentIndex()+1; 滑块.slide(nextIndex,1000);
var 幻灯片 = $ionicSlideBoxDelegate;
var nextIndex = slider.currentIndex()+1;
滑块.slide(nextIndex,1000);