vtils

Home > validator > yup > NumberSchema > max

yup.NumberSchema.max() method

最大值

Signature:

max(limit: Refable<number>, message?: NumberLocale['max']): this;

Parameters

Parameter Type Description
limit Refable<number>  
message NumberLocale[‘max’] (Optional)

Returns:

this