zoukankan      html  css  js  c++  java
  • 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();
                                        });
  • 相关阅读:
    【LeetCode每天一题】Combinations(组合)
    【算法】字符串匹配算法
    【LeetCode每天一题】Edit Distance(编辑距离)
    【LeetCode每天一题】Set Matrix Zeroes(设置0矩阵)
    SpringIOC和DI
    SpringMVC基础
    SpringMVC框架简介
    Spring配置JDBCTemplate
    java自定义注解
    KTV项目之3个ListView的跳转和加载歌手图片
  • 原文地址:https://www.cnblogs.com/DIVEY/p/14439551.html
Copyright © 2011-2022 走看看