JavaScript/jQuery - “$ is not defined- $function()” error

后端 未结 8 2011
轻奢々
轻奢々 2020-11-30 08:15

I am trying to run a JavaScript/jQuery function and Firebug gets the error:

$ is not defined $(function()\".

The JavaScript code is placed

8条回答
  •  -上瘾入骨i
    2020-11-30 09:04

    This may be useful to someone:

    If you already got jQuery but still get this error, check you include jQuery before the js that uses it, specially if you use @RenderBody() in ASP.NET C#

    You have to include jQuery before the @RenderBody() if you include the js inside the view that @RenderBody() calls.

提交回复
热议问题