摘要:
http://dean.edwards.name/主要代码: 1 // array-like enumeration 2 if (!Array.forEach) { // mozilla already supports this 3 Array.forEach = function(array, block, context) { 4 for (var i = 0; i < array.length; i++) { 5 block.call(context, array[i], i, array); 6 } 7 }; 8... 阅读全文