摘要:写了简单注释. 具体用法 请参考 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 阅读 (2687) 评论 (11) 编辑