jquery取消按钮文本更改。我需要";否";而不是",;取消“;
可以根据需要更改对象来更改按钮文本。假设您希望它是一个“是”或“否”对话框,那么:jquery取消按钮文本更改。我需要";否";而不是",;取消“;,jquery,dialog,Jquery,Dialog,可以根据需要更改对象来更改按钮文本。假设您希望它是一个“是”或“否”对话框,那么: $("#dvdialogconfirm").text(msg); $("#dvdialogconfirm").dialog({ resizable: false, modal: true, zIndex: 100001, closeOnEscape: false, width
$("#dvdialogconfirm").text(msg);
$("#dvdialogconfirm").dialog({
resizable: false,
modal: true,
zIndex: 100001,
closeOnEscape: false,
width: 360,
buttons: {
OK: function () {
$(this).dialog("close");
if (func != null) {
func();
}
},
Cancel:
function () {
func1();
}
}
});
我想这个对你有帮助。只需将“取消”改为“否”,谢谢你的支持。这很好。谢谢你的支持。这很好。
$("#dvdialogconfirm").text(msg);
$("#dvdialogconfirm").dialog({
resizable: false,
modal: true,
zIndex: 100001,
closeOnEscape: false,
width: 360,
buttons: {
Yes: function () {
$(this).dialog("close");
if (func != null) {
func();
}
},
No:
function () {
func1();
}
}
});
$("#dvdialogconfirm").text(msg);
$("#dvdialogconfirm").dialog({
resizable: false,
modal: true,
zIndex: 100001,
closeOnEscape: false,
width: 360,
buttons: {
YES: function () {
$(this).dialog("close");
if (func != null) {
func();
}
},
NO: function () {
func1();
}
}
});