2011-11-07 29 views

回答

0

为了让jQuery验证你只需要包括jquery.validate.js 有它不显眼的JavaScript则包括jquery.validate.unobtrusive.js

为了得到任何验证你有几种选择:

1. Use DataAnnotations on your View Models 
2. Use another library like FluentValidation which will use the jQuery validation. 
3. Manually add the jquery validation calls.