KendoUI和jQuery 1.9.0的问题

mat*_*uma 0 jquery kendo-ui

遇到KendoUi和最新版本的jQuery的问题...我有一个简单的ASP.NET MVC项目,其中包含一个视图,呈现如下:

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
    <link href="/Content/site.css" rel="stylesheet"/>
    <script src="/Scripts/modernizr-2.5.3.js"></script>
</head>
<body>   
<h2>Index</h2>
    <script src="/Scripts/jquery-1.9.0.js"></script>
    <script src="http://cdn.kendostatic.com/2012.3.1114/js/kendo.all.min.js" type="text/javascript"></script> 
</body>
</html>
Run Code Online (Sandbox Code Playgroud)

当我查看页面时,我在javascript控制台中收到以下错误:

Uncaught TypeError: Object function ( selector, context ) {
        // The jQuery object is actually just the init constructor 'enhanced'
        return new jQuery.fn.init( selector, context, rootjQuery );
    } has no method 'sub' 

kendo.all.min.js:10
Run Code Online (Sandbox Code Playgroud)

遇到这个问题的其他人?我做错了什么?

Bun*_*dyo 8

jrummell说的是 - 我们还没有正式支持jQuery 1.9.0,因为它是在我们的服务包的同一天发布的.jQuery 1.9.0自1.8.x以来有许多重大变化,如果你需要它与1.8兼容API,请同时包含jQuery Migrate插件.

更新:Kendo UI Q1 2013支持并附带jQuery 1.9.1.

  • @mattruma我觉得你有一套非常不切实际的期望,不是吗?甚至jQuery项目UI和Mobile目前也不支持jQuery 1.9.由于代码在发布之前的波动,jQuery Mobile在1.9发布后发现了重大变化.在更新发布的同一天,期望框架在更新的依赖项上100%可靠是不现实的. (4认同)
  • 另外,Kendo UI的Service Pack版本解决了"jQuery.sub"问题.但是,1.9还存在其他不兼容问题.Kendo UI的一般做法是仅在主要版本上提供更新版本的jQuery. (2认同)