jQueryMobile关闭对话框而不更改页面

jQueryMobile关闭对话框而不更改页面,jquery,jquery-mobile,dialog,Jquery,Jquery Mobile,Dialog,我正在用jQM开发一个web应用程序。这是一个单页面应用程序,有很多脚本生成的虚拟页面。我使用了很多对话框,有时候,关闭这些对话框会使我的应用程序返回到起始页(历史记录中的3页) 我不能做一个测试用例,因为它只发生在复杂的案例中,基于数据库,并且只发生在idevice上,而不发生在计算机上 我发现了很多类似的问题,但都是针对jqm1.2或更早版本的。我正在使用jqm1.5.3 我在脚本中添加了log page event.js工具,它提供了以下信息: 首先,页面加载为“visite_client

我正在用jQM开发一个web应用程序。这是一个单页面应用程序,有很多脚本生成的虚拟页面。我使用了很多对话框,有时候,关闭这些对话框会使我的应用程序返回到起始页(历史记录中的3页)

我不能做一个测试用例,因为它只发生在复杂的案例中,基于数据库,并且只发生在idevice上,而不发生在计算机上

我发现了很多类似的问题,但都是针对jqm1.2或更早版本的。我正在使用jqm1.5.3

我在脚本中添加了
log page event.js
工具,它提供了以下信息:

首先,页面加载为“visite_client-86871”

然后,单击“打开”对话框:

[Log] popstate (1422376499968) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871&ui-state=dialog
    state.hash: 
[Log] hashchange (1422376501192) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871&ui-state=dialog
[Log] popstate (1422376521377) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871
    state.hash: #visite_client-86871

[Log] hashchange (1422376521403) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871
然后,我关闭对话框:

[Log] popstate (1422376499968) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871&ui-state=dialog
    state.hash: 
[Log] hashchange (1422376501192) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871&ui-state=dialog
[Log] popstate (1422376521377) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871
    state.hash: #visite_client-86871

[Log] hashchange (1422376521403) (log-page-events.js, line 44)
    location: http://m2.biocrm.fr/#visite_client-86871
毫无理由,它会回到主页“Tournes”

我可以做些什么来检测错误的原因,或者防止它? 看起来jQM在他的历史中很困惑。是否可以更精确地记录它


非常感谢。

我通过在弹出窗口中添加
data history=“false”
来修复它

我不太确定某个地方是否有bug,但它对我来说是这样的,所以万一它对某人有帮助