如何更改alertify中的按钮标签 - v0.3.11
我正在使用以下代码
alertify.confirm("Are you sure you want to cancel this order?", function (e) {
if (e) {
document.forms.SFOrder.action=<cfoutput>'#self#=#xfa.cancelOrder#'</cfoutput>;
document.forms.SFOrder.submit();
return true;
} else {
return false;
}
}).setting('labels',{'ok':'Accept', 'cancel': 'Decline'});
但是它给出了以下错误
未捕获TypeError:alertify.confirm(...)。设置不是函数
答案 0 :(得分:1)
alertify.okBtn("Accept").cancelBtn("Decline").confirm("Are you sure you want to cancel this order?", function (e) {
if (e) {
document.forms.SFOrder.action=<cfoutput>'#self#=#xfa.cancelOrder#'</cfoutput>;
document.forms.SFOrder.submit();
return true;
} else {
return false;
}
});