我用百里香
bootbox.confirm({
title: /*[[#{delete}]]*/,
message: /*[[#{delete.car}]]*/,
buttons: {
cancel: {
label: '<i class="fa fa-times"></i> [[#{no}]]'
},
confirm: {
label: '<i class="fa fa-check"></i> [[#{yes}]]'
}
},
callback: function (result) {
...
}
});
显示按钮的值时,带有引号。...
buttons: {
cancel: {
label: '<i class="fa fa-times"></i> "Non"'
},
confirm: {
label: '<i class="fa fa-check"></i> "Oui"'
}
},
我搜索以获得
buttons: {
cancel: {
label: '<i class="fa fa-times"></i> Non'
},
confirm: {
label: '<i class="fa fa-check"></i> Oui'
}
},