*/Array.prototype.myForEach=function(callback,context) { context = context ||window;if('forEach'inArray.prototype) {this.forEach(callback,context)return}// IE6-8下自己编写回调函数执行的逻辑for(leti =0,len =this.length; i < len; i++) { callback && callback.call(context,this[i], ...