2
$("#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會凍結,崩潰並且什麼都不會發生。JQuery對話框凍結關閉
我是否正確定義關閉功能?