gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-05 06:39:36 28 4
gpt4 key购买 nike

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

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com