校验 正则表达式 小数位数不能超过三位

//验证值小数位数不能超过三位   jQuery.validator.addMethod("three", function (value, element) {       var three = /^-?\d+(\.\d{1,3})?$/;       return this.optional(element) || (three.test(value));   }, $.validator.
相关文章
相关标签/搜索