zoukankan      html  css  js  c++  java
  • vue消息提示this.$message方法

    //弹出信息  th传的是this
    function alertMessage(th,action,a){
        var msg,type;
        switch(a){
            case '1':
                type='success';
                msg = action+'成功';
                break;
            case '2':
                type='warning';
                msg = action;
                break;
            case '3':
                type='info';
                msg = '取消'+action;
                break;
            case '4':
                type='error';
                msg = action+'失败';
                break;
            default:
                break;
        }
        th.$message({
            message: msg,
            type: type,
        });
    }
    
    //弹出信息
                alertMessage(th,action,msg){
                    this.$message({
                        message: msg,
                        type: action,
                    });
                },
    ————————————————
    原文链接:https://blog.csdn.net/qq_41488724/java/article/details/87935456

       this.$message.warning("领取截止时间不能小于结束日期");

    此随笔或为自己所写、或为转载于网络。仅用于个人收集及备忘。

  • 相关阅读:
    2020 11 21
    2020 11 20
    2020 11 19
    2020 11 18
    2020 11 17
    2020 11 16
    2020 11 15
    2020 11 14
    2020 11 14
    第五周学习进度报告
  • 原文地址:https://www.cnblogs.com/shy1766IT/p/13383670.html
Copyright © 2011-2022 走看看