未捕获的ReferenceError:在kendo mvc4中未定义jQuery

时间:2015-02-04 09:36:08

标签: asp.net-mvc-4 kendo-ui kendo-chart

我的布局页面代码如下 -

<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="shortcut icon"   href="@Url.Content("~/Scripts/Images/favicon.ico")""/>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>@ViewBag.Title </title>

  @Styles.Render("~/Content/kendo")
  @Styles.Render("~/Content/css")
 @Scripts.Render("~/bundles/jquery")
 @Scripts.Render("~/bundles/kendo")
@Scripts.Render("~/bundles/bootstrap")
@Scripts.Render("~/bundles/modernizr")
 </head>
<body>
<div class="container">
    <div class="navbar " style="background-color: white; border: none;">
            </div>
    <div class="navbar navbar-inverse" style="background-color: #01A9DB; border: none;">
        <div class="navbar-inner">
                <ul class="nav navbar-nav">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("About", "About", "Home")</li>
                    <li>@Html.ActionLink("Contact", "Contact", "Home")</li>
                   </ul>
                @Html.Partial("_LoginPartial")
        </div>
    </div>
            @RenderSection("featured", required: false)
           @RenderSection("HeadContent",required:false)
    <div class="container">
        <div style="margin: 0% 1% 0% 1%;">
            @RenderBody()

        </div>

        <hr />
    </div>
    <footer>
        </footer>
</div>
 @RenderSection("scripts",required:false)

</body>
</html>

我在图表页面上有错误 Chart.cshtml页面

<div class="chart-wrapper">
@(Html.Kendo().Chart()
    .Name("chart")
    .Title("Site Visitors Stats \n /thousands/")
    .Legend(legend => legend
        .Visible(false)
    )
    .ChartArea(chartArea => chartArea
        .Background("transparent")
    )
    .Series(series => {
        series.Bar(new double[] { 56000, 63000, 74000, 91000, 117000, 138000 }).Name("Total Visits");
        series.Bar(new double[] { 52000, 34000, 23000, 48000, 67000, 83000 }).Name("Unique visitors");
    })
    .CategoryAxis(axis => axis
        .Categories("Jan", "Feb", "Mar", "Apr", "May", "Jun")
        .MajorGridLines(lines => lines.Visible(false))
    )
    .ValueAxis(axis => axis
        .Numeric()
        .Max(140000)
        .Line(line => line.Visible(false))
        .MajorGridLines(lines => lines.Visible(true))
    )
    .Tooltip(tooltip => tooltip
        .Visible(true)
        .Template("#= series.name #: #= value #")
    )
) 
</div>

当我运行项目时 - 输出为空白视图页面上没有图表, 当我在控制台中看到我发现下面的错误时

enter image description here

请帮帮我。

0 个答案:

没有答案