如何将charset设置为.js Bundle c#?

时间:2018-02-16 10:57:09

标签: javascript c# utf-8 bundle

这解决了这个问题:

<script type="text/javascript" src="~/Content/Script/Script.js" charset="windows-1251"></script>
  

如何在Bundles中设置charset?像这样的代码:

   Dim bundle As ScriptBundle = New ScriptBundle("~/bundles/global").Include("~/js/jquery.min.js",
                                                                     "~/js/jquery.cookie.js",
                                                                     "~/js/plugins/nicescroll/jquery.nicescroll.min.js",
                                                                     "~/js/plugins/imagesLoaded/jquery.imagesloaded.min.js",
                                                                     "~/js/plugins/jquery-ui/jquery.ui.core.min.js")

如何在我的文件js中以捆绑和强制尊重顺序插入charset

<%: Scripts.Render("~/bundles/global") %>

0 个答案:

没有答案