Kendo UI 指令要求 jQuery 在带有 Kendo 网格的 AngularJS 之前可用,在带有 Html5mode 的路由模板中 [英] The Kendo UI directives require jQuery to be available before AngularJS with Kendo grid in routing template with Html5mode

查看:21
本文介绍了Kendo UI 指令要求 jQuery 在带有 Kendo 网格的 AngularJS 之前可用,在带有 Html5mode 的路由模板中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在带有 Kendo 网格的角度路由模板中,为什么要在 Jquery 之前加载 kendo.

Why kendo load before Jquery in angular routing template with Kendo grid.

我已经订购了脚本,同时通过 Angular 路由模板单击任何事件,在控制台中出现此错误.

I have ordered the scripts, while clicking any event through angular routing templates getting this error in console.

注意:在页面刷新时,脚本加载正确,应用程序运行正常,没有出现任何错误.

Note: In page refresh, scripts loaded properly, the application works fine, not getting any error.

仅发生在事件路由中.jquery为什么之前加载kendo.

Only occurred in event routing. kendo load before jquery why.

order scripts :

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular.js"></script>
    <script src="//kendo.cdn.telerik.com/2016.2.714/js/kendo.all.min.js"></script>
    <script src="https://code.angularjs.org/1.3.8/angular-sanitize.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-router/0.3.1/angular-ui-router.js"></script>

推荐答案

我遇到了同样的问题:我加载了两次 jQuery.

I had the same issue: I was loading jQuery twice.

这篇关于Kendo UI 指令要求 jQuery 在带有 Kendo 网格的 AngularJS 之前可用,在带有 Html5mode 的路由模板中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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