尝试使用touchSwipe - TouchSwipe:http://labs.skinkers.com/touchSwipe/
当页面加载时,我收到以下错误(在firebug中):
TypeError: $(...).swipe is not a function
swipe: function(event, direction, distance, duration, fingerCount) {
代码是
$(function() {
$('#showdivrightcover').swipe({
swipe: function(event, direction, distance, duration, fingerCount) {
if (direction=='left') {
$('#showdivrightcover').trigger('click');
}
}
})
});
无法弄清楚我正在做什么导致错误 - 感谢您的帮助。