首页 > 代码库 > bootstrapvalidator中name属性带点怎么解决

bootstrapvalidator中name属性带点怎么解决

<div class="form-group">
  <div class="col-md-6 col-md-offset-3">
   <input type="text" class="form-control" placeholder="用户名" name="userRegisterInfo.username" value="" id="username" />
 </div>
</div>

验证上面的表单

"userRegisterInfo.username": {  

  message: ‘The username is not valid‘,
  validators: {
  notEmpty: {},
  stringLength: {
  min: 6,
  max: 20
  }

}

 

bootstrapvalidator中name属性带点怎么解决