我正在使用插件,我想做一个通用的验证文件,我可以在node.js的前端和服务器端使用它。我创建了一个js文件,并使用此代码来实现上述功能。/vendor/validator-js/validator'); } else if (typeofTo include new Validation Method to existing Validatio
you have a long form<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<link href="https://raw.githubusercontent.com/victorjonsson/jQuery-Form-Validator</
我使用快速验证器进行电子邮件验证,我想将req.user从快速验证器传递到下一个中间件我尝试了以下代码:.custom((value, { req}) => { .then(user => { throw new Error("No account found with this email"); req.user = use