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 对话框?
$('content_in_the_dialog').click(function(){ close the dialog });
类似的东西。所以我的问题是我应该在那里输入什么代码来关闭对话框?
只需调用如下关闭方法,
$('#dialog_selector').dialog('close');
http://jqueryui.com/demos/dialog/#method-close