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();
                                        });
  • 相关阅读:
    xml 总结(一)数据岛,命名空间
    activiti designer 安装到 myeclipse
    activiti5.15 学习笔记
    goole网址IP
    form 中Enctype=multipart/form-data 的作用
    上传文件form表单enctype="multipart/form-data"传值解决办法(代原代码)
    淘宝初始化样式
    js闭包使用之处
    CSS Sprites
    iframe用的场景
  • 原文地址:https://www.cnblogs.com/DIVEY/p/14439551.html
Copyright © 2011-2022 走看看