JS调用自定义弹窗【bootstrap】

function commonConfirm(msg,call){
    showConfirmBox("消息提示",msg,call);
}

$(document).on('click','.jq_settle',function(){
        var orderId = $(this).attr('data-id');
        if(commonConfirm("确认结算订单?",function(){
            $.post(base + "/order/orders/" + 'settle.json',{id:orderId},function(data){
                if(data.success){
                    getNewspage(0);
                    initPagination(getNewspage);
                }
                commonAlert(data.msg,3000);
            });
        }));
    });
原文地址:https://www.cnblogs.com/zhixi/p/5139405.html