gpt4 book ai didi

javascript - 带有 Kendo UI 的 AngularJS 每个都给出 "TypeError: Object [object Object] has no method ''”

转载 作者:行者123 更新时间:2023-11-30 10:17:44 25 4
gpt4 key购买 nike

我在 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>

最佳答案

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

关于javascript - 带有 Kendo UI 的 AngularJS 每个都给出 "TypeError: Object [object Object] has no method ''”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22984578/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com