how to add script src inside a View when using Layout

前端 未结 3 966
清酒与你
清酒与你 2020-12-04 07:19

I want to include a javascript reference like:


         


        
3条回答
  •  难免孤独
    2020-12-04 08:16

    If you are using Razor view engine then edit the _Layout.cshtml file. Move the @Scripts.Render("~/bundles/jquery") present in footer to the header section and write the javascript / jquery code as you want:

    @Scripts.Render("~/bundles/jquery")
    
    

提交回复
热议问题