摘要: 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... 阅读全文
posted @ 2011-12-02 11:19 learn_javascript 阅读(341) 评论(0) 推荐(0) 编辑