javascript - Internet Explorer 7 和 8 卡住加载 MVC3 应用程序

标签 javascript asp.net-mvc-3 internet-explorer-8 internet-explorer-7

我在使用 Internet Explorer 8 和 7 时遇到间歇性问题。我已经对两者进行了测试几天了。我的猜测是它与 JavaScript 有关。

在我的 MVC 3 应用程序中进行随机数量的页面浏览/刷新后,我得到以下结果之一:

  1. 空白屏幕

  2. 之前渲染的页面,无法与页面交互(有时包括滚动)

我尝试注释掉所有 JavaScript,但结果没有任何变化。我尝试部署到不同的服务器,但没有任何结果。我尝试过不同的客户端,但没有任何结果。我尝试在客户端和服务器上搜索日志,但没有任何结果。 Internet Explorer 9ChromeFirefox 似乎不受影响。该应用程序将主要与 Internet Explorer 7 和 8 一起使用。

如果有任何有关下一步尝试的建议,我将不胜感激。

项目中的Javascript库:

jquery-1.5.1-vsdoc.js
jquery-1.5.1.js
jquery-1.5.1.min.js
jquery-ui-1.8.11.js
jquery-ui-1.8.11.min.js
jquery-ui-1.8.20.custom.min.js
jquery.min.js
jquery.unobtrusive-ajax.js
jquery.unobtrusive-ajax.min.js
jquery.validate-vsdoc.js
jquery.validate.js
jquery.validate.min.js
jquery.validate.unobtrusive.js
jquery.validate.unobtrusive.min.js
MicrosoftAjax.debug.js
MicrosoftAjax.js
MicrosoftMvcAjax.debug.js
MicrosoftMvcAjax.js
MicrosoftMvcValidation.debug.js
MicrosoftMvcValidation.js
modernizr-1.7.js
modernizr-1.7.min.js
pngfix.js

最佳答案

删除以下内容似乎已解决该问题:

<!--[if lte IE 7.]>
    <script type="text/javascript" src="@Url.Content("~/Scripts/pngfix.js")"></script>
<![endif]-->    

<!--[if (gte IE 6)&(lte IE 8)]>
    <script type="text/javascript" src="@Url.Content("~/Scripts/IE9_fix.js")"></script>
<![endif]--> 

<!--[if lt IE 9.]>
    <script src="@Url.Content("~/Scripts/html5.js")" type="text/javascript"></script>
<![endif]-->    

关于javascript - Internet Explorer 7 和 8 卡住加载 MVC3 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12459368/

相关文章:

javascript - 如何使用 PhantomJS 打开子框架中的链接?

asp.net-mvc-3 - 将类添加到 Razor View 模型中的 Ajax.BeginForm 调用

internet-explorer - IE提示打开或保存服务器的json结果

html - IE7/IE8 分页-:always not working 之后

css - IE8随机渲染字体粗细

html - 如何使 td 元素不在表格内包装文本?

javascript - 从 iPhone 向 PHP 提交表单

javascript - AWS Lambda puppeteer 师

javascript - 回调函数、辅助函数和包装函数之间有什么区别?

asp.net-mvc - EditorFor() 和附加 View 数据 : how to add data in helper class?