jQuery后退按钮-交易隐藏页面 [英] jQuery Back Button - transaction hidden page

查看:73
本文介绍了jQuery后退按钮-交易隐藏页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个小的单个文件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屋!

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