jquery mobile android浏览器,Jquery移动应用程序不会在默认的Android浏览器中加载新页面...

I have created a list in jquery mobile which directs to some page on click. it is working fine in android emulator. But showing some strange behavior in android phone's default browser. When i am clicking on list's item it directs me to another page but redirects back automatically. The URL in the browser remains the page to which list directs the user but the content remains the same as of previous page.

我已经在jquery mobile中创建了一个列表,该列表在点击时指向某个页面。它在android模拟器中工作正常。但在Android手机的默认浏览器中显示一些奇怪的行为。当我点击列表的项目时,它会将我引导到另一个页面,但会自动重定向。浏览器中的URL仍然是列表指向用户的页面,但内容保持与上一页相同。

Please, somebody response. I am really stuck on this.

请有人回复。我真的被困在这上面了。

You can see the same problem in jquerymobile demo: http://jquerymobile.com/test/docs/pages/index.html

您可以在jquerymobile演示中看到相同的问题:http://jquerymobile.com/test/docs/pages/index.html

I am opening this page in android-2.3 (tried in HTC and Samsung) , on clicking on list's item it directs me to another page but redirects back automatically. It doesn't happen always, but most of the times when clicking on list items.

我在android-2.3(在HTC和三星中试过)打开这个页面,点击列表的项目它会将我引导到另一个页面,但会自动重定向。它并不总是发生,但大多数时候点击列表项。

1 个解决方案

#1

1

我的答案见: - http://forum.jquery.com/topic/jquery-mobile-true-browser-back-button-issue

Just you have to do following:-

只需要做以下事项: -

$.extend( $.mobile , {

hashListeningEnabled: false

});

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值