Loading

jQuery模态弹窗插件:jquery-confirm

官网地址:https://craftpip.github.io/jquery-confirm/

 

虽然很多时候都选择使用新的前端框架进行开发,但是原生js的很多功能及插件其实也很强大。值得探究

 

本次设置confirm确认框用到一些内容

包括设置confirm tittle content  ,按钮文本及颜色,添加function

<script src="<%=basePath%>static/js/jquery.min.js?v=2.1.4"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.2/jquery-confirm.min.js"></script>
$.confirm({
            title: I18N_TVP_COMMON_MSG_TITLE,
            content: I18N_TVP_VIOLATION_INPUT_CONFIRM_MSG,
            buttons: {
                cancel: {
                    text: I18N_TVP_COMMON_BTN_CANCEL,
                    action: function () {
                    }
                },
                ok: {
                    text: I18N_TVP_COMMON_BTN_OK,  
                    btnClass: 'btn-blue',
                    action: function () {

 参考:https://blog.csdn.net/MingDaw/article/details/127621322

posted @ 2023-01-16 15:36  李旭2018  阅读(552)  评论(0编辑  收藏  举报