jQuery Mobile将页面更改为其自身 [英] Jquery mobile change page to itself

查看:80
本文介绍了jQuery Mobile将页面更改为其自身的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用jquery mobile(单页)构建的网站.

I have a website built with jquery mobile(Single page).

我有类似向导的内容:搜索->选择->选择->搜索->菜单->搜索->搜索.基本上,这里只有三页,但是我需要将其中一些更改为它本身,例如搜索到搜索,因此它将存在于历史记录中并引发页面显示事件等.

I have something like a wizard: e.g. search -> select -> select -> search -> menu -> search -> search. Basically here are only three pages, but i need to change some of them to itself, like search to search, so it will be in a history and to rise a pageshow event etc...

我该怎么办?

 $.mobile.changePage("#page1");

在这种情况下不起作用:这是一个示例.

doesn't work in this case: here is an example to playaround.

推荐答案

您是否尝试过allowSamePageTransition选项,如

Have you tried the allowSamePageTransition option as discussed in the documentation?

这篇关于jQuery Mobile将页面更改为其自身的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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