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最后更新于
这有帮助吗?