$(document).ready(function () $未定义

$(document).ready(function () $ is not defined

我正在研究 asp.net mvc 并使用 Kendo UI 网格控件进行数据检索,将这些功能用于另一个应用程序工作正常的问题而不是在代码中。所有 JavaScript 和 Kendo 网格 ui 参考,包括当我 运行 应用程序遇到这些错误时

$(document).ready(function () $ is not defined List:178 Uncaught TypeError: $(...).kendoDatePicker is not a function

多次。当我点击错误时,他们会在这行显示错误

<script>
$(document).ready(function () {
    $("#StartDate").kendoDatePicker();
});

我在参考中添加了程序集,但注意到 fruitful。

这就是说,缺少 jQuery 来源。

您应该在 head 标签之间添加 jQuery 来源:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js">

引用必须按照以下顺序在 head 标记中:

<head>
    <title></title>
    <link rel="stylesheet" href="styles/kendo.common.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.min.css" />
    <link rel="stylesheet" href="styles/kendo.default.mobile.min.css" />

    <script src="js/jquery.min.js"></script>
    <script src="js/kendo.all.min.js"></script>
</head>