赞
踩
- let watermarkContentVaild=(rule, value, callback)=>{
- let length=value.replace(/[^\x00-\xff]/g,'01').length
- if(length>10){
- callback(new Error("请输入1~5个汉字或者1~10个字符"))
- }else{
- callback();
- }
- }
-
- name:[
- { required: true, message: '请输入活动名称', trigger: 'blur' },
- { validator: watermarkContentVaild, trigger: 'blur' }
- ],
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。