📜  是的,最大长度 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:19.097000             🧑  作者: Mango

代码示例1
string.length(limit: number | Ref, message?: string | function): Schema
//Set a required length for the string value. The ${length} interpolation can be used in the message argument

string.min(limit: number | Ref, message?: string | function): Schema
//Set a minimum length limit for the string value. The ${min} interpolation can be used in the message argument

string.max(limit: number | Ref, message?: string | function): Schema
//Set a maximum length limit for the string value. The ${max} interpolation can be used in the message argument