function arrReverse(arr){
var newArr=[];
for(var i=0;i<arr.length;i++){
newArr[i]=arr.pop()
}
return newArr;
document.write(arrReverse([1,2,3,4,5,6,7,8]));
Caballarii
相关分类