Array.prototype.forEach = Array.prototype.forEach || function (callback) { var isArray = Object.prototype.toString.call(this) == '[object Array]'; if(isArray){ for(var key in this){ if(key != 'forEach'){ callback.call(this[key],key,this[key],this); } } }else{ throw TypeError; } };
IE不兼容forEach解决方案
最新推荐文章于 2020-11-04 14:59:41 发布