jquery.validation的几种常用验证

messages: {
    required: "必填项",
    remote: "Please fix this field.",
    email: "邮箱非法,请确认",
    url: "URL地址格式错误,请确认",
    date: "日期格式错误,请确认",
    dateISO: "日期格式(ISO)错误,请确认.",
    number: "请输入数字",
    digits: "请输入整数",
    creditcard: "信用卡号码格式错误",
    equalTo: "两次输入不一致",
    accept: "后缀名错误",
    mobile:"手机号码格式错误",
    tel:"电话号码格式错误",
    mobileOrTel:"手机或电话号码格式错误",
    qq:"QQ号码格式错误",
    chinese:"请输入中文",
    idcard:"身份证号码格式错误",
    letter:"请输入字母",
    ip:"IP地址格式错误",
    zipcode:"邮政编码格式错误",
    maxlength: $.validator.format("最多输入 {0} 个字符"),
    minlength: $.validator.format("最少输入 {0} 个字符"),
    rangelength: $.validator.format("字符长度介于 {0} 到 {1} 之间"),
    range: $.validator.format("值大小介于 {0} 到 {1}之间"),
    max: $.validator.format("最大值不超过 {0}"),
    min: $.validator.format("最小值不小于 {0}")
}

你可能感兴趣的:(jquery.validation的几种常用验证)