在纯HTML页面中呈现脚本包 [英] Rendering the script bundle in a plain HTML page
本文介绍了在纯HTML页面中呈现脚本包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在我的angularjs MVC应用程序中使用HTML页面,而不是cshtml页面. 现在,我正在尝试捆绑所有js文件,我知道对于脚本渲染,我可以使用此语法 @ System.Web.Optimization.Scripts.Render(〜/app/main.js")
I am using HTML pages in my angularjs MVC application instead of cshtml page. Now I am trying to bundle all the js files , I know for script rendering I can use this syntax @System.Web.Optimization.Scripts.Render("~/app/main.js")
在普通的htm页面上使用@ script.render等效于什么?
What is the equivalent of using @script.render on a plain htm page ?
推荐答案
您可以只使用普通的script
标记来加载Javascript.
You can just use a normal script
tag to load your Javascript.
<script src="app/main.js"></script>
这篇关于在纯HTML页面中呈现脚本包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文