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();
                                        });
  • 相关阅读:
    【解题报告】NOIP2018
    【解题报告】NOIP2013
    【解题报告】NOIP2014
    【解题报告】NOIP2015
    【解题报告】NOIP2016
    【解题报告】CSPS2020
    【全程NOIP计划】初级数据结构1
    如何通过一个结构体成员变量的地址找到该结构体的首地址?[备忘]
    IGT笔试题,正整数N等于M个不同的正整数之和的问题
    Mac下Perl脚本如何运行
  • 原文地址:https://www.cnblogs.com/DIVEY/p/14439551.html
Copyright © 2011-2022 走看看