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

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

问题描述

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

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

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

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 之前加载为什么.

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 在 AngularJS 之前可用,并且在带有 Html5mode 的路由模板中使用 Kendo 网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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