miniui表单验证规则总结



    表单验证规则总结
   

   
   
   
   
   


   

表单验证规则总结

     
       

   
       
           
                        
           
       
       
           
                            
               
       
       
           
                            
               
       
       
           
                            
               
         
       
           
                          
                 
         
       
           
                        
                   
         
       
           
                          
                 
                 
       
           
                          
                 
         
       
           
                          
                 
       
       
           
                     
                      
         
       
           
                       
                    
       
       
           
                   
                        
          
       
           
                   
                        
          
       
           
                   
                        
          
       
           
                   
                        
          
       
           
                   
                        
         
       
           
                   
           
          
       
           
                   
           
          
       
           
           
       
   
不允许为空:
               
           
required="true"
必须是邮箱地址:
               
           
vtype="email"
必须是URL:
               
           
vtype="url"
必须是整数(int):
               
           
vtype="int"
必须是数字(float):
               
           
vtype="float"
字符串长度(<= 6):
               
           
vtype="maxLength:6"
字符串长度(>= 2):
               
           
vtype="minLength:2"
字符串长度(2-6):
               
           
vtype="rangeLength:2,6"
字符数个数(2-6):
               
           
vtype="rangeChar:2,6"
数字范围(0-100):
               
           
vtype="range:0,100"
必须是日期格式(如yyyy-MM-dd):
               
           
vtype="date:yyyy-MM-dd"
必须是日期格式(如MM/dd/yyyy):
               
           
vtype="date:MM/dd/yyyy"
邮箱格式,5~20个字符(组合):
               
           
vtype="email;rangeLength:5,20;"
必须输入英文(自定义):
               
           
onvalidation="onEnglishValidation"
必须输入英文(自定义vtype):
               
           
vtype="english"
必须输入英文+数字(自定义):
               
           
onvalidation="onEnglishAndNumberValidation"
必须输入中文(自定义):
               
           
onvalidation="onChineseValidation"
身份证验证15~18位(自定义):
               
           
onvalidation="onIDCardsValidation"

               
           


   
   

   


       

Description


       


           
       

       
   


你可能感兴趣的:(数据库知识经验,工作开发经验总结)