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
问题描述
我有一个带有角度应用程序的 Mvc.
I have a Mvc with angular application.
有两个布局文件:登录布局: - 默认布局主布局:
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 文件中
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.
我在下面附上了截图:
同时单击电影按钮脚本顺序单击电影"按钮时出错当页面刷新脚本加载时
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屋!