joi 介绍
Imagine you run facebook and you want visitors to sign up on the website with real names and not something likel337_p@nda in the first name field. How would you define the limitations of what can be inputted and validate it against the set rules?
This is joi,joi allows you to create blueprints or schemas for JavaScript objects (an object that stores information) to ensure validation of key information.
网站地址:https://github.com/hapijs/joi/blob/v13.3.0/API.md
GitHub:https://github.com/hapijs/joi
网站描述:数据校验模块,高度封装常用的校验功能
joi
官方网站:https://github.com/hapijs/joi/blob/v13.3.0/API.md
小编说
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。