Why Asp.Net MVC 5 put @Scripts.Render(“~/bundles/jquery”) at the bottom in _Layout.cshtml?
问题 I put <script> blocks which use jQuery in the body of one (and only one) cshtml file which uses the template and they causes error because jQuery is not loaded yet. What's the point to put the @Scripts.Render("~/bundles/jquery") at the bottom of _Layout.cshtml file? The bottom of the _Layout.cshtml . @RenderBody() <hr /> <footer> </footer> </div> @Scripts.Render("~/bundles/jquery") @Scripts.Render("~/bundles/bootstrap") @RenderSection("scripts", required: false) </body> </html> The following