IE11无法获取未定义或 null 引用的属性“call”,错误出现 在jquery.validate.中

taogchan 2017-06-07 05:22:35
无法获取未定义或 null 引用的属性“call”,错误出现 在jquery.validate.js中
IE11 有问题,其他浏览器OK
function handler(e) {
e = $.event.fix(e);
e.type = fix;
return $.event.handle.call(this, e); ---->报错点就在这里
}
求大神,指点~·
...全文
3880 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
石头商人 2017-06-08
  • 打赏
  • 举报
回复
刚也遇到这个问题,基本是jquery.js和jquery.validate.js版本问题,如果是asp.net mvc 还有jquery.validate.unobtrusive.js,jquery.validate.js的版本, copy别处: 2 down vote At the moment of writing (September 2014) I tested the following combination and for me (with IE8 and surprise, even with IE7!) this works: jQuery 1.11.1 (latest 1.x version) jQuery.Validation 1.10.0 Microsoft.jQuery.Unobtrusive.Ajax 3.2.2 (last available version) Microsoft.jQuery.Unobtrusive.Validation 3.2.2 (last available version) Note, with IE 11 (edge) sometimes I get (if I open the Debugger with F12) the following error: SCRIPT5007: Unable to get property 'call' of undefined or null reference File: jquery.validate.js, Line: 1234, Column: 5 But if I close the debugger and use the form as a normal user, if works fine. Tested also with IE10 and IE9 (IE11 emulating these). No problems found so far. If you are unable to update (downgrade) the nuget packages because you get a dependency error (jquery 1.4 or so), remember to use the -IgnoreDependencies flag, for example: Update-Package jQuery.Validation -Version 1.10.0 -IgnoreDependencies Enjoy (well, supporting IE8 is not really enjoying, but if you are here it means you are working with customers who can't get rid of this crappy browser...). Cheers ;) link:https://stackoverflow.com/questions/14818363/mvc3-unobtrusive-validation-not-working-in-ie/26022153#26022153

62,241

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧