Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我面临的问题:
viewModel.errors = ko.validation.group(viewModel);
它显示错误:
未捕获的类型错误:无法读取未定义的属性“组”
任何一个ko.validation.*都不被识别
ko.validation.*
我正在使用jquery-1.7.1.js, knockout2.1.0,knockout-validator.js并希望对某些字段进行验证。
jquery-1.7.1.js
knockout2.1.0
knockout-validator.js
你真的使用了正确的文件吗?它的名字是
淘汰赛.validation.js
https://github.com/ericmbarnard/Knockout-Validation