为什么我会收到这些错误“未捕获的错误:没有模块:kendo.directives”和“未捕获的ReferenceError:_未定义”? [英] why am i getting these errors "Uncaught Error: No module: kendo.directives" and "Uncaught ReferenceError: _ is not defined "?

查看:182
本文介绍了为什么我会收到这些错误“未捕获的错误:没有模块:kendo.directives”和“未捕获的ReferenceError:_未定义”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的jsfiddle的相同链接 -

http://jsfiddle.net/akki166786 / MYe2T / [ ^ ]



我的代码是 -



here is the link of my jsfiddle for the same-
http://jsfiddle.net/akki166786/MYe2T/[^]

my code is -

<script src="~/Scripts/jquery-1.7.1.min.js"></script>
<script src="~/Scripts/angular/angularjs.js"></script>
<script src="~/Scripts/Kendo/kendo.all.min.js"></script>
<script src="~/Scripts/angular/angular-kendo.js"></script>

<script>
    var myModule = angular.module('myApp', ["kendo.directives"]);
</script>

<div ng-app="myApp">
    <div data-kendo data-role="calendar"></div>
    
</div>

推荐答案

angular-kendo.js依赖于Underscore.js所以我们需要在我们的库中包含该库(我们可以从 http://下载它) underscorejs.org / [ ^ ]),它删除了错误bt仍然是我我的视图页面上没有任何小部件,我不知道是什么问题。
angular-kendo.js has the dependency on Underscore.js so we need include that library in our Library (we can download it from http://underscorejs.org/[^]), it removes the error bt still i am not getting any widget on my view page, i don't know what is the problem.


这篇关于为什么我会收到这些错误“未捕获的错误:没有模块:kendo.directives”和“未捕获的ReferenceError:_未定义”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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