/* * className为green的方法 */function alertMsgG(msg,title,fn){ bootbox.alert({ buttons: { ok: { label: '确认', className: 'btn green' } }, message: msg, title:title, callback: fn });}/* * className为primary的方法 */function alertMsg(msg,title,fn){ bootbox.alert({ buttons: { ok: { label: '确认', className: 'btn primary' } }, message: msg, title:title, callback: fn });}function confirmMsg(msg,fn){ bootbox.confirm({ buttons: { confirm: { label: '确认', className: 'btn-success' }, cancel: { label: '取消', className: 'btn-default' } }, message: msg, callback:fn })}