Hi, I'm a big fan of using the forEach method on nodeLists like this: var nodes = document.querySelectorAll(".foo"); [].forEach.call(nodes, function (item) { //do stuff with item }); I was wondering though, does doing it that way take longer than the regu... > このページを見る
最終更新時間:
2010年04月03日01時03分

![[].forEach.call(nodes, function (item) { } ) - twwp [].forEach.call(nodes, function (item) { } ) - twwp](http://screenshot.hatena.ne.jp/images/200x150/9/5/4/9/e/98ce6bcf92e887ace0f4fc256d7c44148b8.jpg)

![バック・トゥ・武道館 [DVD]](http://ecx.images-amazon.com/images/I/51ERvwhwYtL._SL75_.jpg)

![ビッグ [DVD]](http://ecx.images-amazon.com/images/I/51Cx3hrTT9L._SL75_.jpg)
![BIG tomorrow (ビッグ・トゥモロウ) 2012年 07月号 [雑誌]](http://ecx.images-amazon.com/images/I/61kYWnuFq5L._SL75_.jpg)

