section scripts vs script-tag in asp.net mvc

后端 未结 2 1576
离开以前
离开以前 2021-01-22 16:30

What is the difference of both statements concerning the section Scripts and script-tag? NOT the content inside the scripts that does not interest me.

@section S         


        
2条回答
  •  情话喂你
    2021-01-22 17:17

    You might want to define sections in you _layout.cshtml file for specific content. It is generally believed that styles belong to and scripts belong before . Your mileage may vary.

    If you just output @renderSection("scripts",required:false)

    then you are screwed (-:

提交回复
热议问题