$(document).ready(function()$未定义 [英] $(document).ready(function () $ is not defined

查看:129
本文介绍了$(document).ready(function()$未定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理asp.net mvc,并使用Kendo UI网格控件进行数据检索,并将这些功能用于另一个应用程序,该应用程序正常工作于代码之外.所有JavaScript和Kendo网格ui参考,包括当我运行应用程序时遇到这些错误

I'm working on asp.net mvc and using Kendo UI grid control for data retrieving, using these functionality for another application working fine problem not in code. All JavaScript and Kendo grid ui reference including when i run the application i face these error

$(document).ready(function()$未定义 列表:178未捕获的TypeError:$(...).kendoDatePicker不是函数

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

多次.当我单击错误时,他们在此行上显示错误

multiple time. when i click on error they show me error on this lines

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

我在参考中添加了汇编,但是注意到了卓有成效.

I add assembly on reference but noting fruitful.

推荐答案

这表示,缺少jQuery源.

This says that, missing jQuery source.

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

You should add jQuery source between head tags:

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

引用必须按以下顺序放在head标签中:

References must be in head tag following order:

<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>

这篇关于$(document).ready(function()$未定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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