如何使用JavaScript循环遍历数组中的所有条目?
我以为它是这样的:
forEach(instance in theArray)
Run Code Online (Sandbox Code Playgroud)
theArray我的阵列在哪里,但这似乎是不正确的.
我有两个主要问题.
是否可以扩展Object计数?
什么是DOM包装?
http://perfectionkills.com/whats-wrong-with-extending-the-dom/
在阅读那篇文章之后,我找不到关于DOM包装的任何内容,也没有找到任何规范以及究竟是什么和不是DOM扩展.