• VUE自定义提示语句confim


    let returnMsgList = [
                                        "1、是否确认",
                                        "2、页面中填写,请确认填写是否正确!"
                                    ];
                                    let threemsg = '';
                                    returnMsgList.push(threemsg);
                                    let newDatas = [];
                                    let h = this.$createElement;
                                    for (const i in returnMsgList) {
                                        if (i != 2) {
                                            newDatas.push(h('p', null, returnMsgList[i]))
                                        }else {
                                            newDatas.push(h('p', { style: 'color: red'}, returnMsgList[i]))
                                        }
                                    }
                                    this.$confirm( h('div', null, newDatas), '请确认信息', {
                                        confirmButtonText: '是',
                                        cancelButtonText: '否'
                                        })
                                        .then(() => {
                                                toDO();
                                        })
                                        .catch(action => {
                                          
                                            document.getElementById("totalOut").scrollIntoView();
                                        });
  • 相关阅读:
    容易忽视的运算符问题
    JAVA:数组,排序,查找<4>
    JAVA:类的三大特征,抽象类,接口,final关键字<3>
    JAVA:变量,数据类型,运算符,流程控制(简介)<1>
    JAVA:类,对象,成员属性,成员方法,构造方法,类变量,类方法<2>
    JAVA:二进制(原码 反码 补码),位运算,移位运算,约瑟夫问题(5)
    java静态代码块、初始化块和构造方法的执行顺序
    java面试题小全
    java中从1000万个随机数中查找出相同的10万个随机数花的最少时间
    Java数据类型总结
  • 原文地址:https://www.cnblogs.com/DIVEY/p/14439551.html
Copyright © 2020-2023  润新知