/** * 校验是否是数字 */ export const isPositiveInteger = function(value) { var re = /^[0-9]+$/ ; return re.test(value) }