jQuery(...).kendoDatePicker 不是函数

标签 jquery kendo-ui kendo-asp.net-mvc

冒着降低我的声誉的风险,我是 Kendo UI 和东西的新手,我读了很多关于这个错误的信息,但找不到任何帮助我的东西。

这是我的观点

@model ClothingSite.Models.Register
@using Kendo.Mvc.UI;
@{
    ViewBag.Title = "ThunderBird Clothes";
}
<head>
    <script src="@Url.Content("~/Scripts/jquery.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.web.min.js")"></script>
    <script src="@Url.Content("~/Scripts/kendo.aspnetmvc.min.js")"></script>

</head>

<h2>Title Legend</h2>
@(Html.Kendo().DatePicker().Name("Birthday"))
<link rel="stylesheet" href="@Url.Content("~/Content/styles/kendo.common.min.css")">
<link rel="stylesheet" href="@Url.Content("~/Content/styles/kendo.default.min.css")">

我是否遗漏了任何引用资料?我有免费试用版 Telerik Kendo UI 中的脚本 以及完整的错误

IndexButton:78 Uncaught TypeError: jQuery(...).kendoDatePicker is not a function at HTMLDocument. (IndexButton:78) at i (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.K (jquery.min.js:2)

最佳答案

您忘记添加主要的 kendo ui JS 文件。根据您的 kendo ui 版本,您可以在项目中添加 kendo.all.min.js 文件。

有关分步指导,请查看 this .

如有任何疑问,请告诉我。

关于jQuery(...).kendoDatePicker 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44248503/

相关文章:

kendo-ui - 如何确定在 javascript 中调用 (Kendo) grid.SaveChanges() 后是否存在验证错误

jquery - 我如何计算我需要滚动多少

javascript - 将 json 正确绑定(bind)到 Kendo DropDownList

c# - Kendo MVC DropDownListFor 不会将所选值绑定(bind)到模型

javascript - Mvvm 支持自定义剑道 ui 小部件

css - 使 Dojo 或 Ext JS4 小部件的外观和行为类似于 Kendo UI。要求会有多高?

kendo-grid - Kendo Grid 寻呼机按钮

jquery - 使用 jQuery 打开和关闭 richfaces 模式面板

jquery - 在一个使用带有多个 ViewModel 的 knockout.js 的程序中,如何知道一个特定的 View 模型会因属性的变化而改变?

javascript - 尝试向 Chrome 扩展程序添加一项功能,以阻止 scmplayer 在页面访问时自动播放