ASP.NET MVC 4: cannot modify jQuery Unobtrusive Ajax

后端 未结 2 853
花落未央
花落未央 2021-02-07 13:12

Using ASP.NET MVC 4 and NuGet to manage packages.

After upgrading to jQuery 1.9.1 via NuGet, I began getting Ja

2条回答
  •  执笔经年
    2021-02-07 13:42

    The Microsoft jQuery Unobtrusive Ajax package has been fixed in version 2.0.30116.0 to fix this problem. The calls to .live() were changed to use .on().

    Try upgrading your NuGet package to get the latest version.

    However, the suggestion to use the jQuery Migrate package is a good one to find issues in other plugins or your own code that aren't compatible with the changes in jQuery 1.9+.

提交回复
热议问题