etclientvalidationrules自定义验证中访问要

etclientvalidationrules自定义验证中访问要

本文介绍了我可以在Getclientvalidationrules自定义验证中访问要验证的值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在尝试实现自定义客户端验证,我想知道我可以在GetClientValidationRules中访问要验证的值,就像IsValid中的值一样吗? 提前谢谢am trying to implement custom client side validation, and i was wondering can i access the value to validate in the GetClientValidationRules just like the value in IsValid??thanks in advance推荐答案 在控制器中创建一个动作来检查天气值是否有效 确保异步选项设置为falseCreate an action in the controller to check weather the value is valid or notmake sure that the async option is set to false 这篇关于我可以在Getclientvalidationrules自定义验证中访问要验证的值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-22 23:48