原文 .validate() validate( [options ] ) options Type: Object debug (default: false) Type: Boolean Enables debug mode. If true, the form is not submitted and certain errors are displayed on the console (will check if a window.console property exists). T
1.add method jQuery.validator.addMethod( "multiemail", function (value, element) { var email = value.split(/[;,]+/); // split element by , and ; valid = true; for (var i in email) { value = email[i]; valid = valid && jQuery.validator.met
原文:http://odetocode.com/blogs/scott/archive/2014/10/16/working-with-validators-and-messages-in-angularjs.aspx --------------------------------------------------------------------------------------------------------------- In a previous post we looked