标签:trigger ESS his err required call vue blur else
rules: {pwd:[{required:true, message:‘创建密码‘,trigger:‘blur‘}],cpwd:[{required:true,message:‘确认密码‘,trigger:‘blur‘},{validator:(rule,value,callback)=>{if(value===‘‘){callback(new Error(‘请再次输入密码‘))}else if(value!==this.ruleForm.pwd){callback(new Error(‘两次输入密码不一致‘))}else{callback( )}},trigger:‘blur‘}]}
标签:trigger ESS his err required call vue blur else
原文地址:https://www.cnblogs.com/knuzy/p/9842397.html