摘要: 写了简单注释. 具体用法 请参考 ES5 手册 .// 模拟ES5 Array.prototype.forEach if (!Array.prototype.forEach) { Array.prototype.forEach = function(f, oThis) { if (!f || f.constructor != Function.toString()) return; oThis = oThis || window; for (var i = 0, len = this.length; i < len; i++) { f.call(oThis, this[i], i, th 阅读全文
posted @ 2009-03-11 22:03 Franky 阅读(3106) 评论(11) 推荐(1) 编辑