执着羊

文章
6
资源
0
加入时间
4年2月8天

JavaScript数组添加remove()方法

<br />第一种:Javascript代码 //Array Remove - By John Resig (MIT Licensed)   Array.prototype.remove = function(from, to) {       var rest = this.slice((to || from) + 1 || this.length);       this.length = from < 0 ? this.length + from : from;