0
是否有可能(以合理的方式)讓一個jQuery UI對話框關閉不同的動畫,具體取決於點擊哪個按鈕?根據按鈕關閉jQuery UI對話框的不同動畫?
$("#dialog").dialog({
autoOpen: false,
show: "blind",
hide: "explode"
buttons: {
"Delete": function() {
... one animation here ...
$(this).dialog("close");
},
"Cancel" : function() {
... another here ...
$(this).dialog("close");
}
}
});