Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在回发加载时显示的 jQuery 对话框。然而,问题是对话框出现在所选选项卡设置在其后面之前,因此在对话框关闭之前会显示错误的选项卡。
有没有办法在调用对话框之前测试并等待选项卡完成设置?
您可以从选项卡显示事件中打开对话框
$('#tabs').tabs({ show: function(){ $('mydialog').dialog('open'); } });