if(!Array.prototype.indexOf) {
Array.prototype.indexOf = function(obj, start) {
for(var index = (start || 0), j = this.length; index < j; index++) {
if(this[index] === obj) {
return index;
}
}
return -1;
}
}
indexOf
最新推荐文章于 2024-07-19 12:58:53 发布