我有 2 种不同的方法来创建与 Jquery 的对话框
这个不行:
var options = "{width: 1024, height: 600, modal: true, buttons: { Cancelar: function () { $(this).dialog('close'); } }, draggable: false, resizeble: false}";
$('#UserSettings').dialog(options);
这个工作正常:
$('#UserSettings').dialog({ width: 1024, height: 600, modal: true, buttons: { Cancelar: function () { $(this).dialog('close'); } }, draggable: false, resizeble: false });
想不通为什么。