简体   繁体   English

jQuery Mobile Changepage首先切换到错误页面

[英]jquery mobile changepage switching to wrong page first

I'm writing a phonegap app using jquery mobile. 我正在使用jquery mobile编写一个phonegap应用程序。

It's a really big app so I'm not able to post all my javascript code. 这是一个非常大的应用程序,所以我无法发布我所有的JavaScript代码。 but I have a google map in my app and it has overlay buttons, if attached a function that gets executed when I push the button. 但是我的应用程序中有一个google map,并且它具有覆盖按钮(如果附加了在按下按钮时执行的功能)。 Normally it should just link to a page with the id #list. 通常,它应该只链接到ID为#list的页面。

$.mobile.changePage("#list", {
    transition: "slide"
});

The app has a navigation like this 该应用程序具有这样的导航

home->map->list 主页->地图->列表

Now when I click the button on the map that runs above code, it should just go the list page, but it first goes to the home page, then to the list page, this looks bad, but also when I press the back button it returns to the home page, not to the map page. 现在,当我单击运行上述代码的地图上的按钮时,它应该只进入列表页面,但是首先进入主页,然后再进入列表页面,这看起来很糟糕,但是当我按下返回按钮时返回首页,而不是地图页面。

anyone seen this problem before? 有人看过这个问题吗?

some info: 一些信息:

android 2.3 Android 2.3

htc desire HD htc欲望高清

jquery 1.8 jQuery的1.8

jquery mobile 1.2 jQuery Mobile 1.2

phonegap 2.x phonegap 2.x

问题是我两次启动了phonegap!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM