jquery-ui dialog buttons 按钮动态名称的问题
$('#dialog').dialog({
autoOpen: false,
width: 600,
modal: true,
title: dialogTitle,
buttons: {
"确定": function () {
alert('确定');
},
"关闭": function () {
$(this).dialog("close");
}
}
});
$('#dialog').dialog({
autoOpen: false,
width: 600,
modal: true,
title: dialogTitle,
buttons: {
"确定新增": function () {
alert('确定');
},
"关闭": function () {
$(this).dialog("close");
}
}
});