日期:2014-05-16 浏览次数:20462 次
Array.prototype.S = String.fromCharCode(2); Array.prototype.in_array = function(e) { var r = new RegExp(this.S+e+this.S); return (r.test(this.S+this.join(this.S)+this.S)); };
var times = 100000; var la = []; for(var i = 0; i < times; i ++) { la[i] = i + 1; } // la.length la.in_array(453)