document.write('
解析:
array.pop();// 删除最后一个元素,并返回该元素
array.shift();// 删除第一个元素,数组元素位置自动前移,返回被删除的元素
array.splice(start,delCount);// 从 start 的位置开始向后删除 delCount
个元素
Array.prototype.del=function(index){
 if(isNaN(index)||index>=this.length){
 return false;
 }
 for(var i=0,n=0;i
 if(this[i]!=this[index]){
 this[n++]=this[i];
 }
 }
 this.length-=1;
}; 
');