在jQuery Mobile中从左向右滑动过渡 [英] sliding left to right transition in jQuery Mobile

查看:122
本文介绍了在jQuery Mobile中从左向右滑动过渡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要添加在发生向左滑动时的页面运行时间.但是当发生滑动向右滑动时,我无法通过滑动从左向右返回创建的上一页.

I'm adding pages run time when swipeleft is happened. But when swiperight happened I can't return the previous page that I'm created with sliding from left to right.

我已经在页面上添加了data-direction="reverse",但是并没有产生从左到右的效果.

I have added the data-direction="reverse" to the pages but it didn't create left-to-right effect.

有什么办法吗?

推荐答案

function ChangePage(pageId,iPageIndex) {
    var forward = iCurrCardIndex < iPageIndex;
    iCurrCardIndex = iPageIndex;

    $.mobile.changePage("#" + pageId, "slide", !forward, true);
}

这篇关于在jQuery Mobile中从左向右滑动过渡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆