使用jQuery 1.9的MVC 4 Project中的jquery.validate.js错误 [英] Error in jquery.validate.js in MVC 4 Project with jQuery 1.9

查看:75
本文介绍了使用jQuery 1.9的MVC 4 Project中的jquery.validate.js错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio 2012中的模板创建了一个新的ASP.Net MVC 4项目.升级到jQuery 1.9后,登录功能中断.具体来说,我得到了错误

I created a new ASP.Net MVC 4 project using the template in Visual Studio 2012. After upgrading to jQuery 1.9, the login functionality breaks. Specifically, I get the error

0x800a138f-JavaScript运行时错误:无法获取未定义或空引用的属性调用"

0x800a138f - JavaScript runtime error: Unable to get property 'call' of undefined or null reference

第1172行,jquery.validate.js中的第5列

at line 1172, column 5 in jquery.validate.js

如何解决此问题?

推荐答案

此问题已在 jQuery验证插件1.11.0pre 中修复.

不幸的是,当前在NuGet上没有预发布版本,因此当前有必要直接从GitHub下载jquery.validation.js:

jQuery.Validation 1.11 现在可以通过NuGet获得(感谢@Simon_Weaver).

jQuery.Validation 1.11 is now available via NuGet (thanks @Simon_Weaver).

更新

看起来jQuery的 general 支持是jQuery.Validation代码库,但尚未发布

It looks like general support for jQuery 1.9 is in the jQuery.Validation code base but not yet released

https://github.com/jzaefferer/jquery-validation/pull/613

这篇关于使用jQuery 1.9的MVC 4 Project中的jquery.validate.js错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆