标签:reverse color var push 数组 ever bsp 翻转 pop
var arr = [1, 5, 8, 9, 6, 3]; var arr2 = []; while (arr.length) { var temp = arr.pop(); arr2.push(temp) } alert(arr2)
标签:reverse color var push 数组 ever bsp 翻转 pop
原文地址:http://www.cnblogs.com/samsara-yx/p/7911807.html