📜  bootbox js 确认 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:17.836000             🧑  作者: Mango

代码示例1
bootbox.confirm({
    message: "This is a confirm with custom button text and color! Do you like it?",
    buttons: {
        confirm: {
            label: 'Yes',
            className: 'btn-success'
        },
        cancel: {
            label: 'No',
            className: 'btn-danger'
        }
    },
    callback: function (result) {
        console.log('This was logged in the callback: ' + result);
    }
});