$("#termSheetPrinted").dialog({
autoOpen: false,
resizable: true,
height: 800,
width: 950,
position: 'center',
title: 'Term Sheet',
close: function(event, ui) {
$(this).dialog("close");
},
modal: true,
buttons: {
"Print": function () {
$("#termSheetPrinted").jqprint();
},
"Cancel": function () {
$("#termSheetPrinted").html('');
$(this).dialog("close");
}
}
});
当我单击右上角的“x”时,Firefox 冻结、崩溃,并且没有任何反应。
我是否正确定义了 close 函数?
你在关闭时有无限递归。
尝试这个代码来看看它。
close: function(event, ui) { alert("close is called");
$(this).dialog("close");
},
你应该只有这个
close: function(event, ui) {
},
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)