<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>orm
驗證上面的表單input
"userRegisterInfo.username": { string
message: 'The username is not valid',
validators: {
notEmpty: {},
stringLength: {
min: 6,
max: 20
}form
}class