有人想过如何在bootbox.js对话框的按钮上添加图标吗? 我想在此函数中向“否”和“是”按钮添加图标:
$(function () {
$(".confirm-delete").click(function(e) {
e.preventDefault();
var id = $(this).data('id')
bootbox.confirm("Remove this product?", "No", "Yes", function(confirmed) {
if(confirmed) {
deleteRecord(id);
}
});
});
});