let arr = [1,2,3,4]; let sum = (a, b) => a + b; arr.reduce(sum, 0); 最后输出10 转载于:https://www.cnblogs.com/rusr/p/10000721.html