日期:2014-05-16  浏览次数:20436 次

JavaScript数组添加remove方法
Array.prototype.remove = function(from, to) { 
        var rest = this.slice((to || from) + 1 || this.length); 
        this.length = from < 0 ? this.length + from : from;   
        return this.push.apply(this, rest);   
};