语法:array.reduce(callback, [initialValue])reduce()方法接收callback函数,function callback(preValue, curValue, index, array)preValue: 上一次调用回调返回的值,活着初始值(ini...