0
我想讓Touchwipe與EasyPaginate連接,所以當我向左滑動例如它將與點擊「下一個」尋呼機按鈕相同,我似乎無法找到參數jQuery的Easypaginate,讓我來touchwipe到下一個尋呼機,請參見下面的什麼,我已經這麼遠,感謝這麼多提前爲您的意見/幫助, 米歇爾EasyPaginate with Touchwipe
<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>