摘要:
jQuery.validator.addMethod("stringCheck", function (value, element) { //return this.optional(element) || /^[\u0391-\uFFE5\w]+$/.test(value); if ($("#txtProductName").val().length < 10) { return false; } else { return true; }}, "请输入适合的长度");//验证function validateFrom() 阅读全文