对象不支持属性或方法“ kendoDatePicker”

我用MV5 Razor创建了一个新项目,但是我无法在主页视图中运行“ @(Html.Kendo()。DatePicker()。Name(“ datapickerTest”)))”,但其中包含“ Kendo .js”和“ jquery 2.1.3”,但不起作用。

参考文献“ Kendo.Mvc”包含在项目中。

BundleConfig.cs:

    public class BundleConfig
{
    // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
    public static void RegisterBundles(BundleCollection bundles)
    {
        bundles.Add(new ScriptBundle("~/bundles/jquery").Include(
                    "~/Scripts/jquery-2.1.3.js"));

        bundles.Add(new ScriptBundle("~/bundles/jqueryval").Include(
                    "~/Scripts/jquery.validate*"));

        // Use the development version of Modernizr to develop with and learn from. Then, when you're
        // ready for production, use the build tool at http://modernizr.com to pick only the tests you need.
        bundles.Add(new ScriptBundle("~/bundles/modernizr").Include(
                    "~/Scripts/modernizr-*"));

        bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                  "~/Scripts/bootstrap.js",
                  "~/Scripts/respond.js"));

        bundles.Add(new StyleBundle("~/Content/css").Include(
                  "~/Content/bootstrap.css",
                  "~/Content/site.css"));

        bundles.Add(new ScriptBundle("~/bundles/kendo").Include(
        "~/Scripts/kendo/kendo.all.min.js",
        "~/Scripts/kendo/kendo.timezones.min.js",
        "~/Scripts/kendo/kendo.aspnetmvc.min.js"));

        bundles.Add(new StyleBundle("~/Content/kendo/css").Include(
        "~/Content/kendo/kendo.common-bootstrap.min.css",
        "~/Content/kendo/kendo.common.min.css",
        "~/Content/kendo/kendo.default.min.css",
        "~/Content/kendo/kendo.dataviz.min.css",
        "~/Content/kendo/kendo.dataviz.default.min.css",
        "~/Content/kendo/kendo.bootstrap.min.css"));

        bundles.IgnoreList.Clear();

        // Set EnableOptimizations to false for debugging. For more information,
        // visit http://go.microsoft.com/fwlink/?LinkId=301862
        BundleTable.EnableOptimizations = true;
    }
}

_Layout.cshtml:

@Styles.Render("~/Content/css")
@Styles.Render("~/Content/kendo/css")
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/kendo")
@Scripts.Render("~/bundles/modernizr")

解决了。我在“ _Layout.cshtml:”页面的页脚中创建了“ @ Scripts.Render(“〜/ bundles / jquery”)“

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

对象不支持此属性或方法

来自分类Dev

对象不支持属性或方法“填充”

来自分类Dev

对象不支持属性或方法“删除”

来自分类Dev

对象不支持“最近”的属性或方法

来自分类Dev

对象不支持此属性或方法

来自分类Dev

$对象不支持'live'属性或方法

来自分类Dev

对象不支持“前缀”的属性或方法

来自分类Dev

对象不支持此属性或方法

来自分类Dev

对象不支持“打开”属性或方法

来自分类Dev

对象不支持属性或方法“推”

来自分类Dev

对象不支持属性或方法“ setMap”

来自分类Dev

对象不支持属性或方法getUserData

来自分类Dev

对象不支持属性或方法“多选”

来自分类Dev

对象不支持属性或方法“.DataLabels”

来自分类Dev

对象不支持此属性或方法

来自分类Dev

对象不支持此属性或方法ActiveWorkbook对象VBA

来自分类Dev

“对象不支持属性或方法‘包含’”-[对象错误]

来自分类Dev

对象不支持属性或方法“ attachEvent” InternetExplorer 11

来自分类Dev

对象不支持属性或方法“键”-(IE11)

来自分类Dev

下拉Javascript错误:对象不支持属性或方法“匹配”

来自分类Dev

对象不支持属性或方法“绑定”-Backbone.js

来自分类Dev

VBA对象不支持此属性或方法

来自分类Dev

HTML画布-对象不支持属性或方法“删除”

来自分类Dev

对象不支持IE 10中的属性或方法“ querySelector”

来自分类Dev

对象在igGrid中不支持属性或方法“ _super”

来自分类Dev

对象在jQuery中不支持属性或方法“查找”

来自分类Dev

IE 11错误:对象不支持属性或方法“替换”

来自分类Dev

对象不支持属性或方法“ readFile”(节点:fs)

来自分类Dev

“对象不支持属性或方法” VBA登录

Related 相关文章

热门标签

归档