asp.net mvc4 jquery not working

前端 未结 3 1424
无人共我
无人共我 2021-02-18 20:55

I\'m trying to run a jquery code which was put in my _Layout.cshtml as below:

...............


        
3条回答
  •  被撕碎了的回忆
    2021-02-18 21:26

    You need to introduce jquery before your script.

    @Scripts.Render("~/bundles/jquery")
    
    
    
      @RenderSection("Scripts", required: false) 
    
    
    

提交回复
热议问题