`return result && (0 >= step ? (text >= min && text <= max) : 0 === (text + min) % step && (text >= min && text <= max))` 以上代码中,如果step大于0,应该是 (text - min) % step === 0 把,不是 text + min