zoukankan      html  css  js  c++  java
  • 各个组件中的表单校验

      
     funciton validateForms(formRefs) {
            const formValidatList[];
            for (let i = 0; i < formRefs.length; i++) {
                const formValidat = new Promise((resolve, reject) => {
                    let formRef = formRefs[i];
                    if (formRef.length) formRef = formRef[0];
                    formRef.validate((valid: any) => {
                        if (valid) {
                            resolve(ture);
                        } else {
                            reject(false);
                        }
                    });
                });
                formValidatList.push(formValidat);
            }
            return Promise.all(formValidatList);
        }
    validateForms(arr).then( result =>{
      log('success');
    })
      
  • 相关阅读:
    16-1-6 kafka的操作
    16-1-5:MapReduce
    MapReduce概述
    MapReduce的代码实现过程分析
    MapReduce
    HDFS2—SequenceFile(小文件的解决方案)
    HDFS2—federation
    hdfs
    缓解爬虫ip被封的概率
    zookeeper集群搭建
  • 原文地址:https://www.cnblogs.com/HePandeFeng/p/13181128.html
Copyright © 2011-2022 走看看