我的4个表单域都返回了验证错误(“需要一个名字”等等)。当我使用console.log变量时,所有的值都是空的: errors: [{value: '', msg: 'A name is required.<button type="submit" class="btn btn-secondary float-right">Submit</button>
</form> 和我的路由器:feedback
我正在开发一个使用Express的简单程序。我已经添加了Express-Validator来对EJS索引文件执行检查const {check, validationResult} = require('express-validator/check');//This is to post the added customercheck('first_name').isLength({min:5}).withMessage('Name min 5 char'), (