在我的_Layout.cshtml页面中,我想只包含某些@ Styles.Render包,具体取决于所显示的视图.例如,一个页面可能使用jQueryUI库而另一个页面可能没有,如果我不需要,我不想发出下载库的请求.我可以在_layout.cshtml中使用条件语句来实现此目的吗?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。