如何合并 2 个键值对 defaultDialogSetup 和 setupArray?
var defaultDialogSetup = { modal: true, show: 'fade', hide: 'fade' };
var setupArray = {
open: function (e) { $(this).load($(link).attr('href')); },
title: link.innerHTML,
width: 300,
height: 250,
buttons:
{
"OK": function () { createTemplate($(this), $('form', this)); },
"Cancel": function () { $(this).dialog("close"); }
}
};
$dialog.dialog(setupArray);