@Render.Scripts in plain .html file - not in .cshtml

一个人想着一个人 提交于 2019-12-14 02:58:31

问题


I'm wondering - is it possible to add something like

@Scripts.Render("~/bundles/jquery")

in plain .html file (not the .cshtml file)


回答1:


Yes, it is, you can use:

<script src="/Scripts/jquery1.js"></script>
<script src="/Scripts/jquery2.js"></script>
<script src="/Scripts/jquery3.js"></script>

Where jquery1.js, jquery2.js, jquery3.js are the files of the jquery bundle...



来源:https://stackoverflow.com/questions/37362389/render-scripts-in-plain-html-file-not-in-cshtml

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!