Kendo UI指令要求jQuery在AngularJS之前可用.请在文档中的angular之前添加jquery [英] The Kendo UI directives require jQuery to be available before AngularJS. Please include jquery before angular in the document

查看:104
本文介绍了Kendo UI指令要求jQuery在AngularJS之前可用.请在文档中的angular之前添加jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有角度应用程序的Mvc.

I have a Mvc with angular application.

有两个布局文件: Loginlayout:-默认布局 MasterLayout:

There are two layout files : Loginlayout: - Default layout MasterLayout:

单击电影"按钮时,调用电影控制器"和电影"操作.

When click the Movie button , call the Movie Controller and Movie action.

    public ActionResult Movie()
    {

        return View();
    }

它使用mainlayout文件:

Its using mainlayout file:

在我提到的Mainlayout文件中

In Mainlayout file i have mentioned

<script src="
            https://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.js"></script>
    @Scripts.Render("~/bundles/bootstrap")
    <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>

在页面刷新中,脚本得到有序加载, 同时单击电影按钮.我收到此错误.

In page refresh , scripts get orderly loaded, while click the movie button. i am getting this error.

我在下面附上了屏幕截图:

I have attached screenshot below:

同时单击电影"按钮脚本顺序 单击电影"按钮时出现错误 加载页面刷新脚本后

while click the Movie button scripts order Error getting when click the Movie button When Page refresh scripts loaded

推荐答案

我遇到了同样的问题,我两次加载了jquery, 其他可能的答案

i had the same issue, i was loading jquery twice, for other possible answers this question

这篇关于Kendo UI指令要求jQuery在AngularJS之前可用.请在文档中的angular之前添加jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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