1. 程式人生 > >bootstrapvalidator中name屬性帶點怎麽解決

bootstrapvalidator中name屬性帶點怎麽解決

ida gis 用戶名 for message mes clas 用戶 -m

<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屬性帶點怎麽解決