too much recursion(太多遞歸)Uncaught RangeError: Maximum call stack size exceeded BootstrapValidator報錯

在BootstrapValidator中已默認遵照Bootstrap規則,form裏的每一個輸入項目必需包含在類爲form-group的標籤裏,不然BootstrapValidator中定義的fields將沒法找到,以致於出現too much recursion錯誤。調試

 

自從使用了BootstrapValidator以後,感受很是漂亮,但卻引起了不少個bug,too much recursion就是其中一種。code

 

這樣的寫法對於BootstrapValidator是不符合規則的,雖然這樣的寫法看起並無什麼錯誤,但運行的時候就會提示too much recursion錯誤,那麼通過多番調試後,發現,若是要使用BootstrapValidator,要驗證的表單必須class爲「form-group」的div中。
 orm

相關文章
相關標籤/搜索