.Net MVC关于子页面引用js库问题时间:2023-03-09 19:16:10 layout页面中的配置: @RenderSection("scripts", required: false) @RenderSection("Styles", required: false) 子页面中需要用section引用模板页面的js或css库: @section Styles{ } @section Scripts{ }