Array.prototype._push=function(item){//获取链接数组的参数param,同时用JSON可以深度拷贝数组letparam =arguments, new_arr =JSON.parse(JSON.stringify(this)),len = new_arr.length;for(vari =0;i < param.length; i++){this[i + len] = param[i]; }returnthis.length; }varpushArr = [1,2,3,...
Array.prototype._push=function(item){//获取链接数组的参数param,同时用JSON可以深度拷贝数组letparam=arguments,new_arr=JSON.parse(JSON.stringify(this)),len=new_arr.length;for(vari=0;i