var numberArray = [1,2,3] numberArray .reverse(); 使用reverse必须要保证是数组调用而且不能为null、undefined 否则报错 转载于:https://www.cnblogs.com/it66/p/11398496.html