如何使 Bootstrap 轮播在按钮单击时从第一张幻灯片开始?
How to make Bootstrap Carousel to start from the first slide on button click?
我在我的网站上使用 Bootstrap 轮播并希望实现此目的:轮播应重置并从单击按钮时的第一张幻灯片开始。
可能吗?
$('#yourButton').click(function() {
$('.carousel').carousel(0);
});
我在我的网站上使用 Bootstrap 轮播并希望实现此目的:轮播应重置并从单击按钮时的第一张幻灯片开始。 可能吗?
$('#yourButton').click(function() {
$('.carousel').carousel(0);
});