摘要:
/*终于解决了IE8不支持数组的indexOf方法*/if (!Array.prototype.indexOf) { Array.prototype.indexOf = function (elt /*, from*/) { var len = this.length >>> 0... 阅读全文
posted @ 2015-11-26 15:04
高山-景行
阅读(1029)
评论(0)
推荐(0)
摘要:
/** 方法:Array.remove(dx) 通过遍历,重构数组* 功能:删除数组元素.* 参数:dx删除元素的下标.*/Array.prototype.remove = function (dx) { if (isNaN(dx) || dx > this.length) { retu... 阅读全文
posted @ 2015-11-26 14:54
高山-景行
阅读(3011)
评论(0)
推荐(0)
浙公网安备 33010602011771号