KendoUI 和 jQuery 1.9.0 的问题 [英] Issues with KendoUI and jQuery 1.9.0

查看:15
本文介绍了KendoUI 和 jQuery 1.9.0 的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Running into an issue with KendoUi and the latest version of jQuery ... I have simple ASP.NET MVC project with a single view that renders as follows:

<!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>

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

When I view the page, I am receiving the following error in my javascript console:

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

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

Anyone else running into this issue? And what am I doing incorrect?

推荐答案

jrummell 所说的 - 我们还没有正式支持 jQuery 1.9.0,因为它与我们的服务包在同一天发布.jQuery 1.9.0 自 1.8.x 以来有许多重大更改,如果您需要它与 1.8 的 API 兼容,还请包括 jQuery 迁移 插件.

What jrummell said - we don't officially support jQuery 1.9.0 yet, as it was released on the same day as our service pack. jQuery 1.9.0 has a number of breaking changes since 1.8.x and if you need it to be API compatible with 1.8, please also include the jQuery Migrate plugin.

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

Update: Kendo UI Q1 2013 supports and ships with jQuery 1.9.1.

这篇关于KendoUI 和 jQuery 1.9.0 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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