我需要帮助: 我有一个带有下一个箭头和图像上一个箭头的经典轮播;我需要像点击一样更改事件,在切换下一个或上一个图像的事件中。
这个:
$('.next-arrow").click(function({
//Move the carousel to the next photo
})
$('.prev-arrow").click(function({
//Move the carousel to the prev photo
})
像这样:
$('.mycarousel").svipe on right (function({
//Move the carousel to the next photo
})
$('.mycarousel").svipe on left(function({
//Move the carousel to the prev photo
})
谢谢!