'$' is undefined

后端 未结 2 989
一整个雨季
一整个雨季 2020-12-07 05:26

I get this error whether I put the jQuery $.ajax call in a $(document).ready(function() { or not. This is on a ASP.NET MVC .cshtml file.

 

        
2条回答
  •  醉梦人生
    2020-12-07 05:54

    On a server on the local network with IE 11, it can also be a compatibility view issue.

    See my answer to this question for more details: '$' is undefined. How to use jQuery 2.0.1 in empty ASP.NET MVC 4 project?

提交回复
热议问题