这解决了这个问题:
<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") %>