简体   繁体   English

如何在 jQuery Mobile 中顺序显示多个对话框?

[英]How to sequentially show multiple dialogs in jQuery Mobile?

How can I sequentially show multiple dialogs in jQuery Mobile (jQM)?如何在 jQuery Mobile (jQM) 中按顺序显示多个对话框?

Opening two dialogs directly in sequence直接依次打开两个对话框

$.mobile.changePage("#dialog1", "pop");
$.mobile.changePage("#dialog2", "pop");

results in a chained redirection to导致链接重定向到

 index&ui-state=dialog&ui-state=dialog

isOpen from jquery UI doesn't work. isOpen from jquery UI 不起作用。

You could tie the change event to the first dialog (so when the user selects something) to maybe kick off the second dialog.您可以将更改事件绑定到第一个对话框(因此当用户选择某些内容时)可能会启动第二个对话框。 Example: (Not working but maybe to get you thinking in the right direction) http://jsfiddle.net/LHG4L/18/示例:(不起作用,但可能会让您朝着正确的方向思考) http://jsfiddle.net/LHG4L/18/

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

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