这不允许小数:
jQuery.validator.addClassRules({
FilterInput: {
required: true,
digits: true
}
});
当然必须有办法!
答案 0 :(得分:0)
https://jqueryvalidation.org/documentation/
答案是:数字
jQuery.validator.addClassRules({
FilterInput: {
required: true,
number: true
}
});