本文介绍了在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中从左向右滑动过渡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!