English 中文(简体)
不包括boot锁或指数.html。
原标题:Excluding bootstrap.html or index.html from the history stack with jQuery mobile

I m 采用j Query移动电话和telGap创建移动应用系统。

申请一开始,前页就会充满活力。 哪一个前页似乎取决于某些国家,例如,是否配置了该信。

因此,我有一间boot子,只装满所有代码,没有尸体。 然后,一些逻辑打电话到jQuery.mobile.changePage,装上所期望的首页。

The issue is that bootstrap.html, which is empty, will be put in the application s history stack. When the user then presses the back button, he or she will go to this empty bootstrap page. This is undesirable behavior.

是否有可能将这间boot子从历史中分离出,并用高能移动。

最佳回答

Without looking into further detail, you would have to disable "hashing" on your first changePage call loading the whatever-page.

如果你检查JQM.js(RC1.0行,第3041号)的变更职能,就有一些具体选择,你可以按照你的改变要求确定这些选择。 如果所提供的选择还不够,你也可以增加选择。

在您的改动中,如果选择<代码> 变更Hash:false 页: 1 我们应当这样做:

$.mobile.changePage( href, { transition: transition, reverse: reverse, role: role, changeHash:false } );

这项工作吗?

问题回答

暂无回答




相关问题
getGridParam is not a function

The HTML: <a href="javascript:void(0)" id="m1">Get Selected id s</a> The Function: jQuery("#m1").click( function() { var s; s = jQuery("#list4").getGridParam( selarrrow )...

selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

jQuery cycle page with links

I am using the cycle plugin with pager functionality like this : $j( #homebox ) .cycle({ fx: fade , speed: fast , timeout: 9000, pager: #home-thumbs , ...

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

jConfirm with this existing code

I need help to use jConfirm with this existing code (php & Jquery & jAlert). function logout() { if (confirm("Do you really want to logout?")) window.location.href = "logout.php"; } ...

Wrap text after particular symbol with jQuery

What I m trying to do, is wrap text into div inside ll tag. It wouldn t be a problem, but I need to wrap text that appears particularly after "-" (minus) including "minus" itself. This is my html: &...

热门标签