Jquery 我正在尝试在图像库中滑动图像。我正在尝试在此网站上执行此操作。()http://klaret.dk/ )但是我的刷卡功能不起作用
我正试图在图像库中滑动图像。我正试图在此网站上执行此操作。()但我的滑动功能不起作用。这是我正在使用的代码。我添加了jquery库和jquery移动ui库。但它仍然不起作用Jquery 我正在尝试在图像库中滑动图像。我正在尝试在此网站上执行此操作。()http://klaret.dk/ )但是我的刷卡功能不起作用,jquery,wordpress,swipe-gesture,Jquery,Wordpress,Swipe Gesture,我正试图在图像库中滑动图像。我正试图在此网站上执行此操作。()但我的滑动功能不起作用。这是我正在使用的代码。我添加了jquery库和jquery移动ui库。但它仍然不起作用 $(document).on("pagecreate", function(){ alert("here"); //alert($('.fs_gallery_wrapper').html()) $(".fs_slide").on("swipe", fun
$(document).on("pagecreate", function(){
alert("here");
//alert($('.fs_gallery_wrapper').html())
$(".fs_slide").on("swipe", function() {
alert("hello");
});
});
我就是这样做的,而且成功了。太棒了
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript">
$(document).on("swipeleft",'.fs_gallery_wrapper', function(){
//alert("here");
nextSlide();
});
$(document).on("swiperight",'.fs_gallery_wrapper', function(){
//alert("here");
prevSlide();
});
</script>
$(document).on(“swipeleft”,'.fs\u gallery\u wrapper',function(){
//警报(“此处”);
nextSlide();
});
$(document).on(“swiperight”,'.fs\u gallery\u wrapper',function(){
//警报(“此处”);
prevSlide();
});
有用于图像滑动的插件吗?没有。这是一个用于此的简单图库。你可以查一下。下面是链接:()我也尝试过,但忘记在其中添加jquery mobile。