带有Kendo UI的AngularJS给出了" TypeError:对象[object object]没有方法'每个'""

时间:2014-04-10 09:54:39

标签: javascript jquery angularjs kendo-ui kendo-dataviz

我在AngularJS项目中使用了Kendo。我按照以下链接的教程:tutotial

当我的HTML中没有任何Kendo元素时,我在控制台中没有出现错误。但是,当我使用教程的下拉示例时:

<select kendo-drop-down-list>
  <option value="1">Thing 1</option>
  <option value="2">Thing 2</option>
  <option value="3">Thing 3</option>
</select>

我收到此错误:

TypeError: Object [object Object] has no method 'each'
    at Object.e.fn.(anonymous function) (http://localhost:8080/Angular/app/js/kendo.all.min.js:10:846)
    at Object.factories.widget (http://localhost:8080/Angular/app/js/angular-kendo.js:98:27)
    at http://localhost:8080/Angular/app/js/angular-kendo.js:203:36
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js:115:185
    at e (http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js:33:421)
    at http://ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js:37:77 

任何人都有可能出现问题的线索?

编辑: 我的包括:

<!-- In production use: -->
    <script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.14/angular.min.js"></script>
    <script src="js/app.js"></script>
    <script src="js/main.js"></script>
    <script src="js/services.js"></script>
    <script src="js/controllers.js"></script>
    <script src="js/filters.js"></script>
    <script src="js/directives.js"></script>
    <script src="lib/bootstrap/ui-bootstrap-tpls-0.5.0.min.js"></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
    <script src="js/angular-kendo.js"></script>

1 个答案:

答案 0 :(得分:4)

我认为在angularjs之前包含jQuery会解决问题