我有以下代码:
$("#dialog").dialog({
height: 360,
width: 630,
modal: true,
autoOpen: false,
show: 'blind',
hide: 'drop',
resizable: false,
dialogClass: 'noFloat'
});
$("#openDiag").click(function() {
$("#dialog").dialog('open');
$.ajax({
type: "POST",
url: "setHsdSegment.jsp",
dataType: "html",
resizable: false,
//data:"name="+name+"&age="+age,
success: function(data) {
$("#response").html(data);
}
});
});
我面临的问题是,显示和隐藏只工作一次。如果我再次单击按钮 (#openDialog),则只显示半透明屏幕而不显示对话框。
有趣的是,这只发生在 hide 是 'drop' 并且 show 是除了 'drop' 之外的任何东西时。但是当节目是“放弃”并且隐藏是其他任何东西时,一切都很好。
当隐藏是“下降”时,节目是否必须“下降”?
编辑:这仅在 IE 中发生。(像往常一样 IE 引起了问题。:D ...为什么?)