【问题标题】:TypeError: Cannot use 'in' operator to search for 'length' in Kendo UITypeError:无法使用“in”运算符在 Kendo UI 中搜索“length”
【发布时间】:2015-07-31 21:05:22
【问题描述】:

我在使用 Angular 1.4、jQuery 1.11.3 和最新的 Kendo UI 时遇到以下错误。这是 Telerik 已知的错误吗?

我在页面上使用的唯一 Kendo 控件是 kendo-multi-select、kendo-date-picker

TypeError: Cannot use 'in' operator to search for 'length' in 
    at r (http://localhost/Scripts/jquery-1.11.3.min.js:2:4254)
    at Function.m.extend.map (http://localhost/Scripts/jquery-1.11.3.min.js:2:3686)
    at Object.<anonymous> (http://kendo.cdn.telerik.com/2015.2.624/js/kendo.all.min.js:55:18312)
    at n.(anonymous function) (http://kendo.cdn.telerik.com/2015.2.624/js/kendo.all.min.js:55:13937)
    at function.t.value.d (http://kendo.cdn.telerik.com/2015.2.624/js/kendo.all.min.js:55:11087)
    at Object.fn (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js:131:178)
    at n.$get.n.$digest (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js:132:259)
    at n.$get.n.$apply (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js:135:269)
    at HTMLButtonElement.<anonymous> (http://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js:252:126)
    at HTMLButtonElement.m.event.dispatch (http://localhost/Scripts/jquery-1.11.3.min.js:4:8549)

【问题讨论】:

  • 我切换到 jQuery 1.10.2 并没有抛出错误。

标签: angularjs kendo-ui telerik typeerror


【解决方案1】:

根据 kendo UI 文档 (More info here) 不支持组合

jQuery 2015 版本的官方支持是

Kendo UI 2015.2.624(2015 年第二季度)- jQuery 1.9.1(也适用于 1.10.x 和 2.0.x) Kendo UI 2015.1.318 (Q1 2015) - jQuery 1.9.1 (也适用 1.10.x 和 2.0.x)

对于 Angular js 来说

剑道 UI 2015.2.624(2015 年第二季度)-AngularJS 1.3.16 剑道 UI 2015.1.318 (2015 年第一季度)——AngularJS 1.3.0

【讨论】:

    猜你喜欢
    • 2016-03-03
    • 1970-01-01
    • 1970-01-01
    • 2019-10-10
    • 1970-01-01
    • 2018-05-02
    • 2015-02-19
    • 2018-01-10
    • 1970-01-01
    相关资源
    最近更新 更多