简体   繁体   English

IE10上的forEach不能在Server 2008上运行,但在其他任何地方都可以在IE10上运行

[英]forEach on IE10 not working on Server 2008, but works on IE10 everywhere else

Is there any reason why the javascript function forEach would not work on IE10 when running on Windows Server 2008, when it works on all other installations of IE10 that I have available (including on BrowserStack )? 在Windows Server 2008上运行时, forEach的javascript函数无法在IE10上运行,是否可以在我可用的所有其他IE10安装上(包括在BrowserStack上 )运行,是否有任何原因?

I'm in the middle of a remote-desktop upgrade on the test site for a client - and as it's a test site the client refuses to allow external http access. 我正在客户端的测试站点上进行远程桌面升级-由于它是测试站点,因此客户端拒绝允许外部http访问。 So the only web-access I have is using IE10 that is on the actual server itself (I am unable to upgrade the browser, as it's not my server). 因此,我唯一的网络访问权限是使用实际服务器本身上的IE10(我无法升级浏览器,因为它不是我的服务器)。

I'm using the sortable.js library to implement simple sorting (unfortunately due to infrastructure issues, jquery is not available)... but IE10 on Windows Server 2008 throws the following error... 我正在使用sortable.js库来实现简单排序(不幸的是,由于基础结构问题,无法使用jquery)...但是Windows Server 2008上的IE10引发以下错误...

Error: Object doesn't support property or method 'forEach' 错误:对象不支持属性或方法“ forEach”

This error has added at least an hour to the upgrade (as I'm having to manually change sort orders in the database, rather than via the tools I have written)... and I'm only half way through. 这个错误至少要花一个小时的时间来升级(因为我必须手动更改数据库中的排序顺序,而不是通过编写的工具)……而我仅完成了一半。

The version on the server is identical to that on Browser Stack (10.0.9200.17566)... so I simply don't understand why it's not working. 服务器上的版本浏览器堆栈(10.0.9200.17566)上的版本相同 ...因此我根本不明白为什么它不起作用。

Can anybody explain why this is happening - and more importantly if there is any way of fixing it (that doesn't involve changing the external javacsript library)? 谁能解释为什么会发生这种情况-更重要的是,如果有任何方法可以解决它(不涉及更改外部javacsript库)?

Could IE10 be running in an older document mode (maybe in compatibility view)? IE10是否可以在较旧的文档模式下运行(也许在兼容性视图中)? The forEach function isn't defined in IE7 or IE8 mode. 在IE7或IE8模式下未定义forEach函数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM