冒着降低我的声誉的风险,我是 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/