TypeError: Reduce of empty array with no initial value at Array.reduce () 解决:给reduce方法的第二个参数(初始值) 推荐 数组方法Reduce的基本使用