简体   繁体   English

在ie6 / 7中未定义HTMLCollection?

[英]HTMLCollection undefined in ie6/7?

It seems that HTMLCollection and NodeList is undefined in ie6/7,and following code will result an error among ie6/7 似乎在ie6 / 7中未定义HTMLCollection和NodeList,并且以下代码将在ie6 / 7中导致错误

alert(HTMLCollection)

then how to identify weather an object is HTMLCollection? 那么如何识别天气对象是HTMLCollection?

HtmlCollection is not available in IE 6/7. HtmlCollection在IE 6/7中不可用。 You would have to try to shim it as in create-a-htmlcollection or use some external library to deal with the problem (which is?) 您将不得不像在create-a-htmlcollection中那样对它进行填充,或者使用一些外部库来解决该问题(这是?)

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

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