string
string()
作用
获取string
类型schema
对象。
参数
无
示例
const schema = racoon.string();
schema.validate(123); // fail
schema.validate('abc'); // pass
最后更新于
这有帮助吗?
string()
获取string
类型schema
对象。
无
const schema = racoon.string();
schema.validate(123); // fail
schema.validate('abc'); // pass
最后更新于
这有帮助吗?