jQuery后退按钮-交易隐藏页面 [英] jQuery Back Button - transaction hidden page
问题描述
我已经构建了一个小的单个文件jQuery Mobile页面/站点.
我的网站有以下流程:
HomePage -> DataPage -> EditData
I’ve build a small single file jQuery Mobile page/site.
My site has following flow:
HomePage -> DataPage -> EditData
我的后退按钮有问题.
我尝试将<a href="#HomePage " data-theme="b" data-icon="arrow-l" data-transition="reverse slide">Back</a>
与href
指向HomePage
这里的一切都很好,除了过渡效果看起来像是在中间的空白页中滚动.移除 reverse 后,一切正常,但根据我在顶部的流程,动画的方向错误.
All works fine here except the transitions look like it is scrolling through empty page in the middle. Once I remove the reverse all works fine, but the animation is in the wrong direction according to my flow at the top.
Demo here.
有什么建议吗?
推荐答案
您应使用data-direction
,请从jQM网站检查示例.
You should use data-direction
please check the example from jQM site.
<a href="docs-transitions.html" data-role="button" data-rel="back" class="ui-btn ui-btn-corner-all ui-shadow ui-btn-active ui-btn-up-b" data-transition="slide" data-direction="reverse">
您也可以从此处
这篇关于jQuery后退按钮-交易隐藏页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!