我在使用 Internet Explorer 8 和 7 时遇到间歇性问题。我已经对两者进行了测试几天了。我的猜测是它与 JavaScript
有关。
在我的 MVC 3
应用程序中进行随机数量的页面浏览/刷新后,我得到以下结果之一:
空白屏幕
之前渲染的页面,无法与页面交互(有时包括滚动)
我尝试注释掉所有 JavaScript
,但结果没有任何变化。我尝试部署到不同的服务器,但没有任何结果。我尝试过不同的客户端,但没有任何结果。我尝试在客户端和服务器上搜索日志,但没有任何结果。 Internet Explorer 9、Chrome 和 Firefox 似乎不受影响。该应用程序将主要与 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/