bootstrapValidator验证中Maximum call stack size exceeded

  • Tip1:如果表单不是通过Bootstrap构建(即元素包含表单项且关联的label没有form-group类),可能会看到错误Uncaught RangeError: Maximum call stack size exceeded
  • tip2:不要使用表单的属性来设置表单的name和id属性(如submit,reset,length等),可能会引起冲突
  • tip3:
    <input type="text" maxlength="3" value="0" class="form-control" name="bottles_delivered[]">
    <input type="text" maxlength="3" value="0" class="form-control" name="empty_bottles_collected[]">
  • But when I add the following HTML code to that form, it shows that error.
  • 总结
    maxlength="" max min 在标签内部同样会被验证 
每天进步一点点~~~
原文地址:https://www.cnblogs.com/heshimei/p/10005764.html