【发布时间】:2013-07-03 10:02:59
【问题描述】:
任何人都可以将我引向正确的方向,在网站上获得 3 个页面,并结合来自 JQuery 移动设备的滑动元素,对于 iPad 使用我已经成功地从第一页(介绍)滑动到下一页(概述)和返回..但无法从(概述页面)向左滑动进入网站的第三页(属性)...这是我的代码:
首页...
<script type="text/javascript">
$(function () {
$("body").live('swiperight', function (event, ui) {
$.mobile.changePage("introduction.html", "slide");
});
$("body").live('swipeleft', function (event, ui) {
$.mobile.changePage("overview.html", "slide");
});
});
</script>
第二页...
<script type="text/javascript">
$(function () {
$("body").live('swiperight', function (event, ui) {
$.mobile.changePage("introduction.html", "slide");
});
$("body").live('swipeleft', function (event, ui) {
$.mobile.changePage("properties.html", "slide");
});
});
</script>
【问题讨论】: