Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | 雲棲社區 | OSChina 博客 | Facebook | Linkedin | 知乎專欄 | Github | Search | About

22.6. Loop

22.6.1. forEach

			
arr.forEach(function (item) {
  someFn(item);
})

elements.forEach(function(element){
  
});
			
			
			
var a = ["a", "b", "c"];
a.forEach(function(entry) {
    console.log(entry);
});