我想让 Touchwipe 与 EasyPaginate 连接,所以当我向左滑动时,它与单击“下一个”寻呼机按钮相同,我似乎无法从 Jquery Easypaginate 中找到允许我的参数要触摸到下一个寻呼机,请参阅下面我到目前为止所获得的内容,并提前非常感谢您的评论/帮助,米歇尔
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/easypaginate.js"></script>
<script type="text/javascript" src="/js/jquery.touchwipe.1.1.1.js"></script>
<script>
$(document).ready(function() {
$('ul#items').touchwipe({
wipeLeft: function() {
// not sure what easyPaginate parameter should go below to trigger the touchwipe?
$('#pagination .prev').easyPaginate();
},
wipeRight: function() {
$('#pagination').easyPaginate(next);
},
// wipeUp: function() { alert("up"); },
// wipeDown: function() { alert("down"); },
min_move_x: 20,
min_move_y: 20,
preventDefaultEvents: true
});
});
</script>