MVC4 Razor confused about braces

后端 未结 5 1842
谎友^
谎友^ 2021-01-04 20:38

I\'ve got a fairly simple question for all the Razor experts out there. I\'m trying to make a jQuery $.ajax() call to a URL, using Url.Content() to translate the home-relat

5条回答
  •  暖寄归人
    2021-01-04 21:24

    Seems to still be a problem with final MVC4 / Visual Studio 2010, but here is my fix:

    @section jQueryDocumentReady
    {
      @{
      
         // All the javascript and bracers you want here
      
      }
    }
    

提交回复
热议问题