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 f irs t 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 informat ion) to ensure?validation?of key informat ion.
网站地址 : 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
如果觉得 网站内容还不错,欢迎将 网站 推荐给程序员好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did175747