MVC 4 @Scripts “does not exist”

后端 未结 24 1970
长发绾君心
长发绾君心 2020-12-12 11:20

I have just created an ASP.NET MVC 4 project and used Visual Studio 2012 RC to create a Controller and Razor Views for Index and Create Actions.

24条回答
  •  遥遥无期
    2020-12-12 12:20

    Try this:

    @section Scripts 
    {
        Scripts.Render("~/bundles/jqueryval")  // <- without ampersand at the begin
    }
    

提交回复
热议问题