首页 > 技术文章 > bootstrapValidator enable某个Filed的单个特定校验器,如notEmpty

wangfan0840 原文

bootstrapValidator enable某个Filed的单个特定校验器,如notEmpty,

官方文档:http://bootstrapvalidator.votintsev.ru/settings/

中的bootstrapValidator('enableFieldValidators', fullName, 'notEmpty', true) 参数顺序错误

第三个参数应该和第四个参数调换顺序,正确格式如下:

bootstrapValidator('enableFieldValidators', fullName, true, 'notEmpty') 

推荐阅读