'$' is undefined

后端 未结 2 987
一整个雨季
一整个雨季 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 06:05

    Make sure you reference JQuery first. Something along the lines of (using MS CDN):

     
    
    

提交回复
热议问题