section scripts vs script-tag in asp.net mvc

后端 未结 2 1682
离开以前
离开以前 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:06

    The first one renders the @RenderSection("Scripts")

    Here, if the script make use of jQuery you want to included with section because jQuery is included before section.

    If you include with

提交回复
热议问题